ajout journald-remote

This commit is contained in:
phil
2023-01-07 00:20:05 +01:00
parent 8a5a320a71
commit ef96a368f3
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
sudo apt-get update
sudo apt-get install -y systemd-journal-remote
rpl="s/^# URL=/URL=http:\/\/${1}:19532/"
sudo sed -i "$rpl" /etc/systemd/journal-upload.conf
sudo systemctl enable systemd-journal-upload.service
sudo systemctl restart systemd-journal-upload.service