Parcourir la source

fix sed command to limit disk space for logs

Casey DeLorme il y a 5 ans
Parent
commit
ab411b7827
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      arch.sh

+ 1 - 1
arch.sh

@@ -189,7 +189,7 @@ echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
 echo "X11Forwarding yes" >> /etc/ssh/sshd_config
 
 # set journald size
-sed -d '/^SystemMaxUse/' /etc/systemd/journald.conf
+sed -i '/^SystemMaxUse/d' /etc/systemd/journald.conf
 echo "SystemMaxUse=2G" >> /etc/systemd/journald.conf
 
 # set root password