|
|
@ -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 |
|
|
|