From 2de9c754b4e73446d935d0424f77e9e2e20cbb4d Mon Sep 17 00:00:00 2001 From: oiseauroch Date: Wed, 16 Nov 2022 16:28:24 +0100 Subject: [PATCH] add sed to allow subdomain --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) 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