Last active
August 7, 2023 18:54
-
-
Save jpigree/50134f947ded5326bfbd805206bd8db2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
echo "Désactiver le forwarding vers syslog" | |
sudo sed -i '/ForwardToSyslog/ s/.*/ForwardToSyslog=no/g' /etc/systemd/journald.conf | |
echo "Redémmarrage de systemd" | |
sudo systemctl restart systemd-journald | |
echo "Désactiver syslog" | |
sudo systemctl stop rsyslog | |
sudo systemctl disable rsyslog | |
echo "Supprimer les fichiers syslog restants" | |
( cd /var/log && sudo rm -rf ./kern.log* ./syslog* ./messages* ./user* ./daemon* ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment