This commit is contained in:
2022-09-23 01:52:29 +03:00
parent 485d31b831
commit 496f5ce18e
+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 #write out current crontab
crontab -l > mycron crontab -l > mycron
#echo new cron into cron file #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 #install new cron file
crontab mycron crontab mycron
rm mycron rm mycron