diff --git a/scripts/restore b/scripts/restore index 62ef7d2..04eabbf 100644 --- a/scripts/restore +++ b/scripts/restore @@ -68,6 +68,10 @@ ynh_script_progression --message="Reinstalling the app ..." --weight=5 ynh_setup_source --dest_dir="$final_path" pushd $final_path +pushd $final_path +# set port in configuration file + sed -i "/HTTP_PORT/s/[0-9]*[0-9]/$port/" package.json + sed -i "/HTTPS_PORT/s/[0-9]*[0-9]/$https_port/" package.json TMP_HOME=$HOME HOME=$(pwd) ynh_use_nodejs