mirror of
https://github.com/YunoHost-Apps/petrolette_ynh.git
synced 2024-09-03 19:56:26 +02:00
fix
This commit is contained in:
parent
3865722ca7
commit
a27ef0681d
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ ynh_script_progression --message="Installing application using node..."
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
# set port in configuration file
|
# set port in configuration file
|
||||||
sed -i "/HTTP_PORT/s/[0-9]*[0-9]/$port/" package.json
|
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
|
# use custom home value to avoid bower storing values in root and have right errors
|
||||||
if [ $mono_user -eq 1 ] ; then
|
if [ $mono_user -eq 1 ] ; then
|
||||||
ynh_add_config --template="petrolette.config.json" --destination="petrolette.config.json"
|
ynh_add_config --template="petrolette.config.json" --destination="petrolette.config.json"
|
||||||
|
|
|
@ -61,7 +61,7 @@ ynh_script_progression --message="Upgrading the app..." --weight=5
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
# set port in configuration file
|
# set port in configuration file
|
||||||
sed -i "/HTTP_PORT/s/[0-9]*[0-9]/$port/" package.json
|
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
|
if [ "$path" != "/" ] ; then
|
||||||
sed -i "s|\$.get(\"/feed\", {|\$.get(\"feed\", {|" public/js/PTL.feed.js
|
sed -i "s|\$.get(\"/feed\", {|\$.get(\"feed\", {|" public/js/PTL.feed.js
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue