Update autoRepackUbuntuCloudImages.sh

This commit is contained in:
Molly Lau 2023-10-02 23:48:45 +09:00 committed by GitHub
parent eefbb33b5a
commit 4ff3712945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,6 @@ done
# write crontab task
if [[ ! `grep -i "autorepackubuntucloudimages" /etc/crontab` ]]; then
sed -i '$i 30 4 8-14,22-28 * 7 root bash /root/autoRepackUbuntuCloudImages.sh' /etc/crontab
sed -i '$i 30 4 8-14,22-28 * */7 root bash /root/autoRepackUbuntuCloudImages.sh' /etc/crontab
/etc/init.d/cron restart
fi