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