vagrant/journald-remote/journald-snd.sh
2023-01-07 00:20:05 +01:00

10 lines
281 B
Bash

#!/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