script journald emmeteur

This commit is contained in:
root 2023-11-30 14:17:01 +01:00
parent 5f87a27856
commit fff6f809a0

View File

@ -0,0 +1,9 @@
#!/bin/bash
# usage : ./journald-snd.sh 10.0.0.1
#sudo timedatectl set-timezone Europe/Paris
#sudo apt-get update
#sudo apt-get install -y systemd-journal-remote
rpl="s/^# URL=/URL=http:\/\/${1}:19532/" # $1 represente l'adresse du recepteur
sudo sed -i "$rpl" /etc/systemd/journal-upload.conf
sudo systemctl enable --now systemd-journal-upload.service
sudo systemctl restart systemd-journal-upload.service