mirror of
https://github.com/YunoHost-Apps/leed_ynh.git
synced 2024-09-03 19:26:32 +02:00
Cron déplacé dans cron.d
This commit is contained in:
parent
be5c3e2c2c
commit
3ecfa2529a
1 changed files with 2 additions and 6 deletions
|
@ -14,12 +14,8 @@ sudo rm -rf /var/www/leed
|
|||
# Suppression de la configuration nginx
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/leed.conf
|
||||
|
||||
# Retirer les lignes du crontab
|
||||
path_no_slash=$(echo $path | cut -d '/' -f 2)
|
||||
sudo crontab -l -u $admin | sudo tee crontab_file
|
||||
sudo sed -i "/Mise a jour de leed /d" crontab_file
|
||||
sudo sed -i "/$path_no_slash\/action.php?action=synchronize&code=/d" crontab_file
|
||||
sudo crontab -u $admin crontab_file
|
||||
# Retirer le cron
|
||||
sudo rm -f /etc/cron.d/leed
|
||||
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue