mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-09 23:05:49 +08:00
Update autoRepackAlmaLinuxCloudImages.sh
This commit is contained in:
parent
b20342bc63
commit
11b7dba49a
1 changed files with 2 additions and 0 deletions
|
@ -43,5 +43,7 @@ done
|
||||||
# Schedule cronjob for the certain day in a week: https://blog.healthchecks.io/2022/09/schedule-cron-job-the-funky-way/
|
# Schedule cronjob for the certain day in a week: https://blog.healthchecks.io/2022/09/schedule-cron-job-the-funky-way/
|
||||||
if [[ ! `grep -i "autorepackalmalinuxcloudimages" /etc/crontab` ]]; then
|
if [[ ! `grep -i "autorepackalmalinuxcloudimages" /etc/crontab` ]]; then
|
||||||
sed -i '$i 0 7 */100,1-7 * SUN root bash /root/autoRepackAlmaLinuxCloudImages.sh' /etc/crontab
|
sed -i '$i 0 7 */100,1-7 * SUN root bash /root/autoRepackAlmaLinuxCloudImages.sh' /etc/crontab
|
||||||
|
crontab -l
|
||||||
|
/etc/init.d/cron reload
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue