Utils
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user