Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 6, 2024
1 parent 1affcd4 commit 98343f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pi-image/satellite.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Wants=network-online.target
[Service]
Type=simple
User=satellite
WorkingDirectory=/usr/local/src/companion-satellite
ExecStartPre=+/opt/fnm/aliases/default/bin/node /usr/local/src/companion-satellite/dist/fixup-pi-config.js /home/satellite/satellite-config.json
ExecStart=/opt/fnm/aliases/default/bin/node /usr/local/src/companion-satellite/dist/main.js /home/satellite/satellite-config.json
WorkingDirectory=/opt/companion-satellite
ExecStartPre=+/opt/fnm/aliases/default/bin/node /opt/companion-satellite/dist/fixup-pi-config.js /home/satellite/satellite-config.json
ExecStart=/opt/fnm/aliases/default/bin/node /opt/companion-satellite/dist/main.js /home/satellite/satellite-config.json
Restart=on-failure
KillSignal=SIGINT
TimeoutStopSec=60
Expand Down
2 changes: 1 addition & 1 deletion pi-image/update-prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18.18"
"node": ">=18.18"
}
}
6 changes: 3 additions & 3 deletions pi-image/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ if [ -n "$SELECTED_URL" ]; then

# copy across the useful files
rm -R -f /opt/companion-satellite
# mv /tmp/satellite-update/resources /opt/companion-satellite
npx --yes @electron/asar e /tmp/satellite-update/resources/app.asar /tmp/satellite-update/resources/app
mv /tmp/satellite-update/resources/app /opt/companion-satellite
# mv /tmp/satellite-update/*.rules /opt/companion-satellite/
# rm -R /tmp/satellite-update
# TODO: this copying!
rm -R /tmp/satellite-update

# remove the old dependencies
rm -R -f node_modules || true
Expand Down

0 comments on commit 98343f5

Please sign in to comment.