Skip to content

Commit

Permalink
Merge pull request #3 from lildude/misc-improvements
Browse files Browse the repository at this point in the history
A few misc improvements
  • Loading branch information
lildude authored Mar 31, 2024
2 parents 6c659e8 + 8c3fbe4 commit b0083b7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
interval: "weekly"
time: "06:00"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
time: "06:00"
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG BUILD_FROM
FROM $BUILD_FROM
FROM "ghostfolio/ghostfolio:2.65.0"

ARG BUILD_ARCH
ARG BASHIO_VERSION=0.16.2
Expand Down
8 changes: 4 additions & 4 deletions build.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"build_from": {
"aarch64": "ghostfolio/ghostfolio:2.65.0",
"amd64": "ghostfolio/ghostfolio:2.65.0",
"armv7": "ghostfolio/ghostfolio:2.65.0"
"aarch64": "ghostfolio/ghostfolio:not-used",
"amd64": "ghostfolio/ghostfolio:not-used",
"armv7": "ghostfolio/ghostfolio:not-used"
},
"args": {
"ghostfolio_version": "2.65.0"
},
"labels": {
"org.opencontainers.image.title": "Home Assistant Add-on: Ghostfolio TESTME",
"org.opencontainers.image.title": "Home Assistant Add-on: Ghostfolio",
"org.opencontainers.image.description": "Privacy-first, open source dashboard for your personal finances.",
"org.opencontainers.image.source": "https://github.com/lildude/ha-addon-ghostfolio/",
"org.opencontainers.image.licenses": "MIT"
Expand Down
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 b0083b7

Please sign in to comment.