From 760abf8c9ac9fa7d1510380eb0ef783f0b076be9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 17 Aug 2021 15:55:50 +0200 Subject: [PATCH] Fix --- conf/cron | 2 +- scripts/upgrade | 27 --------------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/conf/cron b/conf/cron index 77db592..f8d4277 100644 --- a/conf/cron +++ b/conf/cron @@ -1 +1 @@ -*/15 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f __FINALPATH__/admin/cli/cron.php +*/15 * * * * __APP__ /usr/bin/php__PHPVERSION__ -f __FINALPATH__/admin/cli/cron.php >/dev/null diff --git a/scripts/upgrade b/scripts/upgrade index d4b7f81..6fb0ae7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,42 +89,15 @@ ynh_system_user_create --username=$app --home_dir="$final_path" # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -# if [ "$upgrade_type" == "UPGRADE_APP" ] -# then -# ynh_script_progression --message="Upgrading source files..." --weight=6 - -# # Create a temporary directory -# tmpdir="$(mktemp -d)" - -# # Backup the config file in the temp dir -# cp -a "$final_path/config.php" "$tmpdir/config.php" - -# # Remove the app directory securely -# ynh_secure_remove --file="$final_path" - -# # Download, check integrity, uncompress and patch the source from app.src -# ynh_setup_source --dest_dir="$final_path" - -# # Copy the admin saved settings from tmp directory to final path -# cp -a "$tmpdir/config.php" "$final_path/config.php" - -# # Remove the tmp directory securely -# ynh_secure_remove --file="$tmpdir" -# fi - if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=6 - # Remove the app directory securely - #ynh_secure_remove --file="$final_path" - # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config.php" php${phpversion} $final_path/admin/cli/upgrade.php fi - #================================================= # NGINX CONFIGURATION #=================================================