Update autoRepackAlmaLinuxCloudImages.sh

This commit is contained in:
Molly Lau 2023-09-27 23:08:13 +09:00 committed by GitHub
parent 7579771e82
commit 79c64ca13a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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