Update autoRepackUbuntuCloudImages.sh

This commit is contained in:
Molly Lau 2023-07-20 07:43:21 +09:00 committed by GitHub
parent 027cc88504
commit c138c692b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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