9 lines
372 B
Bash
9 lines
372 B
Bash
#!/bin/bash
|
|
sudo timedatectl set-timezone Europe/Paris
|
|
sudo apt-get update
|
|
sudo apt-get install -y systemd-journal-remote
|
|
rpl="s/^# URL=/URL=http:\/\/ap31-mon: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
|