Update autoRepackRockyLinuxCloudImages.sh

This commit is contained in:
Molly Lau 2023-09-27 15:02:25 +09:00 committed by GitHub
parent a335213054
commit 8b9d2fb8ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,6 @@ done
# write crontab task
if [[ ! `grep -i "autorepackrockylinuxcloudimages" /etc/crontab` ]]; then
sed -i '$i 0 5 1-7 * 7 root bash /root/autoRepackRockyLinuxCloudImages.sh' /etc/crontab
sed -i '$i 0 5 1-7 2,4,6,8,10,12 7 root bash /root/autoRepackRockyLinuxCloudImages.sh' /etc/crontab
/etc/init.d/cron restart
fi