mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update autoRepackAlmaLinuxCloudImages.sh
This commit is contained in:
parent
7579771e82
commit
79c64ca13a
1 changed files with 1 additions and 1 deletions
|
@ -40,6 +40,6 @@ done
|
||||||
|
|
||||||
# write crontab task
|
# write crontab task
|
||||||
if [[ ! `grep -i "autorepackalmalinuxcloudimages" /etc/crontab` ]]; then
|
if [[ ! `grep -i "autorepackalmalinuxcloudimages" /etc/crontab` ]]; then
|
||||||
sed -i '$i 0 6 1-7 2,4,6,8,10,12 7 root bash /root/autoRepackAlmaLinuxCloudImages.sh' /etc/crontab
|
sed -i '$i 0 7 1-7 2,4,6,8,10,12 7 root bash /root/autoRepackAlmaLinuxCloudImages.sh' /etc/crontab
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue