Update autoRepackRockyLinuxCloudImages.sh

This commit is contained in:
Molly Lau 2023-10-12 17:27:39 +09:00 committed by GitHub
parent 1df1a4db9e
commit 287cabd05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ for distNum in "8" "9"; do
done
# write crontab task
if [[ ! `grep -i "autorepackrockylinuxcloudimages" /etc/crontab` ]]; then
if [[ ! $(grep -i "autorepackrockylinuxcloudimages" /etc/crontab) ]]; then
sed -i '$i 0 5 */100,1-7 * SUN root bash /root/autoRepackRockyLinuxCloudImages.sh' /etc/crontab
crontab -l
/etc/init.d/cron reload