|
|
@ -113,6 +113,15 @@ sed -ri 's/^# (export LS_OPTIONS=.--color=auto.)/\1/; |
|
|
|
EOF |
|
|
|
fi |
|
|
|
|
|
|
|
## add option to limit log size |
|
|
|
journalctl_config_file="/etc/systemd/journald.conf" |
|
|
|
if [ -f "$journalctl_config_file" ] && |
|
|
|
! grep -q "^SystemMaxUse=" "$journalctl_config_file"; then |
|
|
|
Wrap -d "Limit system journal logs to 200M" <<EOF || exit 1 |
|
|
|
sed -ri 's/^#SystemMaxUse=$/SystemMaxUse=200M/g' "$journalctl_config_file" |
|
|
|
systemctl restart systemd-journald.service |
|
|
|
EOF |
|
|
|
fi |
|
|
|
|
|
|
|
for keyfile in {/root,/home/debian}/.ssh/authorized_keys; do |
|
|
|
[ -e "$keyfile" ] || continue |
|
|
|