Browse Source

new: [myc-update] add SystemMaxUse=200M for journalctl

pull/6/head
Boris Gallet 9 months ago
parent
commit
6cd7a38cdf
  1. 12
      bin/myc-update

12
bin/myc-update

@ -113,6 +113,18 @@ sed -ri 's/^# (export LS_OPTIONS=.--color=auto.)/\1/;
EOF
fi
# add option to /etc/systemd/journald.conf SystemMaxUse=200M
journalctl_config_file="/etc/systemd/journald.conf"
if [ -f $journalctl_config_file ]; then
Wrap -d "Define SystemMaxUse=200M for journalctl if param not already set" <<'EOF' || exit 1
if grep -q "^SystemMaxUse=" $journalctl_config_file; then
echo "SystemMaxUse already defined "
else
echo "SystemMaxUse=200M" >> $journalctl_config_file
systemctl restart systemd-journald.service
fi
EOF
fi
for keyfile in {/root,/home/debian}/.ssh/authorized_keys; do
[ -e "$keyfile" ] || continue

Loading…
Cancel
Save