forked from guillaume.emorine/siotp
Grande réorganisation et renommage au niveau du Gitea, d'autres
modifications à venir.
This commit is contained in:
11
bts_annee_2/sisr2/ap_sdis29/scripts_logs/journald-rcv.sh
Normal file
11
bts_annee_2/sisr2/ap_sdis29/scripts_logs/journald-rcv.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
sudo timedatectl set-timezone Europe/Paris
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y systemd-journal-remote
|
||||
sudo systemctl enable --now systemd-journal-remote.socket
|
||||
sudo cp /lib/systemd/system/systemd-journal-remote.service /etc/systemd/system
|
||||
sudo sed -i 's/--listen-https=-3/--listen-http=-3/' /etc/systemd/system/systemd-journal-remote.service
|
||||
[[ -d /var/log/journal/remote ]] || sudo mkdir /var/log/journal/remote
|
||||
sudo chown systemd-journal-remote /var/log/journal/remote
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl restart systemd-journal-remote
|
||||
Reference in New Issue
Block a user