From a27ef0681d6abd2b88ce1a8cea4b62bfceefb9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:40:21 +0200 Subject: [PATCH] fix --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 92079f4..587affb 100644 --- a/scripts/install +++ b/scripts/install @@ -47,7 +47,7 @@ ynh_script_progression --message="Installing application using node..." pushd $install_dir # 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 + sed -i "/HTTPS_PORT/s/[0-9]*[0-9]/$port_https/" package.json # use custom home value to avoid bower storing values in root and have right errors if [ $mono_user -eq 1 ] ; then ynh_add_config --template="petrolette.config.json" --destination="petrolette.config.json" diff --git a/scripts/upgrade b/scripts/upgrade index b9b9b32..a34184b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,7 +61,7 @@ ynh_script_progression --message="Upgrading the app..." --weight=5 pushd $install_dir # 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 + sed -i "/HTTPS_PORT/s/[0-9]*[0-9]/$port_https/" package.json if [ "$path" != "/" ] ; then sed -i "s|\$.get(\"/feed\", {|\$.get(\"feed\", {|" public/js/PTL.feed.js fi