Compare commits

...

1 Commits

Author SHA1 Message Date
Boris Gallet 6cd7a38cdf new: [myc-update] add SystemMaxUse=200M for journalctl 10 months ago
  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