diff --git a/scripts/upgrade b/scripts/upgrade index 63a58df..599041c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,7 +76,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir="$final_path" --keep=".env" fi chmod 750 "$final_path" @@ -112,9 +112,7 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Upgrading dependencies..." --weight=1 -ynh_exec_warn_less -ynh_install_app_dependencies -$pkg_dependencies +ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies #================================================= # SETUP SYSTEMD @@ -148,7 +146,6 @@ ynh_systemd_action --service_name="${app}-beat" --action="start" --log_path="sys ynh_systemd_action --service_name="${app}-server" --action="start" --log_path="systemd" --line_match="Booting worker with pid" ynh_systemd_action --service_name="${app}-worker" --action="start" --log_path="systemd" --line_match="ready" - #================================================= # RELOAD NGINX #=================================================