From dea25f07ef04b947923ad92792972d4b5418011f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 20 Jul 2024 16:00:27 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 393aeea..79a07a1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,13 +45,10 @@ fi #================================================= ynh_script_progression --message="Reconfiguring $app..." --weight=1 -# Copy and set Wallabag dist configuration -ynh_add_config --template="parameters.yml" --destination="$wb_conf" -chmod 600 "$wb_conf" -chown "$app:www-data" "$wb_conf" +ynh_add_config --template="parameters.yml" --destination="$install_dir/app/config/parameters.yml" -# Alias for php-cli execution command -php_exec=("php$phpversion" "$install_dir/bin/console" --no-interaction --env=prod) +chmod 600 "$install_dir/app/config/parameters.yml" +chown "$app:$app" "$install_dir/app/config/parameters.yml" # Upgrade database and clear the cache php_exec doctrine:migrations:migrate