1
0
Fork 0
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:
Maniack Crudelis 2014-08-25 12:09:57 +02:00
parent fc0adb92e2
commit 8f941379ec

View file

@ -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