1
0
Fork 0
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:
oiseauroch 2022-11-16 16:28:24 +01:00
parent 8764f909df
commit 2de9c754b4

View file

@ -111,6 +111,9 @@ pushd $final_path
if [ $mono_user -eq 1 ] ; then
ynh_add_config --template="petrolette.config.json" --destination="petrolette.config.json"
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
HOME=$(pwd)
export NODE_ENV=production