Эх сурвалжийг харах

fix sed command to limit disk space for logs

Casey DeLorme 5 жил өмнө
parent
commit
ab411b7827
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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