mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +08:00
Update autoRepackUbuntuCloudImages.sh
This commit is contained in:
parent
027cc88504
commit
c138c692b2
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ for distName in "jammy" "focal"; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# write crontab task
|
# write crontab task
|
||||||
if [[ ! `grep -i "autorepackimages" /etc/crontab` ]]; then
|
if [[ ! `grep -i "autorepackubuntucloudimages" /etc/crontab` ]]; then
|
||||||
sed -i '$i 30 4 * * 0 root bash /root/autoRepackImages.sh' /etc/crontab
|
sed -i '$i 30 4 * * 0 root bash /root/autoRepackUbuntuCloudImages.sh' /etc/crontab
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue