mirror of
https://github.com/YunoHost-Apps/petrolette_ynh.git
synced 2024-09-03 19:56:26 +02:00
add sed to allow subdomain
This commit is contained in:
parent
8764f909df
commit
2de9c754b4
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ pushd $final_path
|
||||||
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"
|
||||||
fi
|
fi
|
||||||
|
if [ "$path_url" !="/" ] ; then
|
||||||
|
sed -i "s|\$.get(\"/feed\", {|\$.get(\"$final_path/feed\", {|" public/js/PTL.feed.js
|
||||||
|
fi
|
||||||
[[ -v HOME ]] && TMP_HOME=$HOME
|
[[ -v HOME ]] && TMP_HOME=$HOME
|
||||||
HOME=$(pwd)
|
HOME=$(pwd)
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
|
|
Loading…
Add table
Reference in a new issue