mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +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
|
||||
|
||||
# write crontab task
|
||||
if [[ ! `grep -i "autorepackimages" /etc/crontab` ]]; then
|
||||
sed -i '$i 30 4 * * 0 root bash /root/autoRepackImages.sh' /etc/crontab
|
||||
if [[ ! `grep -i "autorepackubuntucloudimages" /etc/crontab` ]]; then
|
||||
sed -i '$i 30 4 * * 0 root bash /root/autoRepackUbuntuCloudImages.sh' /etc/crontab
|
||||
/etc/init.d/cron restart
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue