mirror of
https://github.com/YunoHost-Apps/leed_ynh.git
synced 2024-09-03 19:26:32 +02:00
Correction du cron
Correction de la création du fichier dans home par cron
This commit is contained in:
parent
fc0adb92e2
commit
8f941379ec
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ code_sync=$(mysql -h localhost -u $db_user -p$db_pwd -s $db_user -e 'SELECT valu
|
|||
# Mise en place du cron pour la synchronisation
|
||||
sudo crontab -l -u $admin > crontab_file
|
||||
echo "# Mise a jour de leed toutes les 2 heures." >> crontab_file
|
||||
echo "0 */2 * * * wget -q \"https://$domain$path/action.php?action=synchronize&code=$code_sync\"" >> crontab_file
|
||||
echo "0 */2 * * * wget -q -O - \"https://$domain$path/action.php?action=synchronize&code=$code_sync\" > /dev/null 2>&1" >> crontab_file
|
||||
sudo crontab -u $admin crontab_file
|
||||
|
||||
# Make app private if necessary
|
||||
|
|
Loading…
Add table
Reference in a new issue