mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +08:00
Update autoRepackRockyLinuxCloudImages.sh
This commit is contained in:
parent
1df1a4db9e
commit
287cabd05c
1 changed files with 31 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue