Skip to content

Commit

Permalink
Only modify if haven't yet
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Mar 31, 2024
1 parent 229ba11 commit 61ee97c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rootfs/etc/services.d/ghostfolio/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ ingress_entry=$(curl -X GET \
-s http://supervisor/addons/self/info | \
jq -r '.data.ingress_entry')

sed -Ei "s^(\`|\")/api^\1${ingress_entry}/api^g" /ghostfolio/apps/client/*/*.js
sed -Ei "s^\(/assets^\(${ingress_entry}/assets^g" /ghostfolio/apps/client/*/*.js
if [[ $(grep hassio_ingress /ghostfolio/apps/client/en/main.*.js) -eq 0 ]]; then
sed -Ei "s^(\`|\")/api^\1${ingress_entry}/api^g" /ghostfolio/apps/client/*/*.js
sed -Ei "s^\(/assets^\(${ingress_entry}/assets^g" /ghostfolio/apps/client/*/*.js
fi

cd /ghostfolio/apps/api
yarn start:production

0 comments on commit 61ee97c

Please sign in to comment.