mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +08:00
Update autoRepackAlmaLinuxCloudImages.sh
This commit is contained in:
parent
1fc649ea8f
commit
1df1a4db9e
1 changed files with 30 additions and 30 deletions
|
@ -41,7 +41,7 @@ done
|
|||
# write crontab task
|
||||
# Crontab simulator: https://crontab.guru/
|
||||
# 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
|
||||
crontab -l
|
||||
/etc/init.d/cron reload
|
||||
|
|
Loading…
Reference in a new issue