This commit is contained in:
2022-10-21 10:25:23 +03:00
parent 2069b84626
commit acad621448
+1 -1
View File
@@ -22,7 +22,7 @@ sudo sed -i 's/#Port 22/#Port 22\n\nAllowUsers root@92.255.251.110 sem\n/' /etc/
#write out current crontab
crontab -l > mycron
#echo new cron into cron file
echo "30 5 * * 6 sudo fstrim -a -v >> /home/sem/fstrim.log" > mycron
echo "30 5 * * * sudo fstrim -a -v >> /home/sem/fstrim.log" > mycron
#install new cron file
crontab mycron
rm mycron