add update script

This commit is contained in:
iacore 2024-06-24 00:43:47 +00:00
parent f9c1430a48
commit 61ccd7a5e7
Signed by: iacore
GPG key ID: F8C16E5157A63006
3 changed files with 11 additions and 4 deletions

View file

@ -5,7 +5,7 @@
type = process
# change the following line based on where the executable is
command = /usr/bin/bwrap --bind / / --tmpfs /home --unshare-all /opt/status/status
working-dir = /opt/status
command = /usr/bin/bwrap --bind / / --tmpfs /home --unshare-all ./status
working-dir = $HOME/c/status
logfile = /opt/status-config/exozyme-status.log
load-options = sub-vars

View file

@ -4,7 +4,7 @@
# dinitctl enable status-updator
type = process
command = /opt/status/proto/dumb-updater
working-dir = /opt/status
command = ./proto/dumb-updater
working-dir = $HOME/c/status
logfile = $HOME/.log/exozyme-status-updater.log
# load-options = sub-vars

7
update-dinit-config Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/fish
go build && \
ln -srf proto/dinit-service ~/.config/dinit.d/status && \
ln -srf proto/dinit-updater-service ~/.config/dinit.d/status-updater && \
for x in status status-updater
dinitctl reload $x && dinitctl restart $x || dinitctl start $x
end