Explorar o código

fix sed command to limit disk space for logs

Casey DeLorme %!s(int64=5) %!d(string=hai) anos
pai
achega
ab411b7827
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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