script journald receveur
This commit is contained in:
parent
4661866ca1
commit
78ac5ec91f
10
Partie2/Wireguard/srvlog31/journald-rcv.sh
Normal file
10
Partie2/Wireguard/srvlog31/journald-rcv.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user