From fff6f809a0c8a1604304a82b0188a08710c5ed71 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Nov 2023 14:17:01 +0100 Subject: [PATCH] script journald emmeteur --- Partie2/Wireguard/ap31-prod/journald-snd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Partie2/Wireguard/ap31-prod/journald-snd.sh diff --git a/Partie2/Wireguard/ap31-prod/journald-snd.sh b/Partie2/Wireguard/ap31-prod/journald-snd.sh new file mode 100644 index 0000000..97c3539 --- /dev/null +++ b/Partie2/Wireguard/ap31-prod/journald-snd.sh @@ -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