This commit is contained in:
2022-09-23 01:40:01 +03:00
parent 354ab4f9e7
commit 243294d0c0
+1 -1
View File
@@ -22,7 +22,7 @@ sudo sed -i 's/#Port 22/Port 22321\n\nAllowUsers root@92.255.251.110 sem\n/' /et
#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 * * 6 sudo fstrim -a -v > /home/sem/fstrim.log" >> mycron
#install new cron file
crontab mycron
rm mycron