diff --git a/scripts/install b/scripts/install index 4914363..7498923 100644 --- a/scripts/install +++ b/scripts/install @@ -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