Skip to content

Commit

Permalink
Fix service executable and handle upcoming change of filename
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Aug 14, 2024
1 parent 23893ec commit ecda037
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/svc-duplicati/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8200" \
cd /app/duplicati s6-setuidgid abc ./duplicati-server \
--webservice-interface=any --server-datafolder=/config --webservice-allowed-hostnames=* $CLI_ARGS
if [[ -f /app/duplicati/duplicati-server ]]; then
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8200" \
cd /app/duplicati s6-setuidgid abc ./duplicati-server \
--webservice-interface=any --server-datafolder=/config --webservice-allowed-hostnames=* $CLI_ARGS
else
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8200" \
cd /app/duplicati s6-setuidgid abc ./Duplicati.Server.exe \
--webservice-interface=any --server-datafolder=/config --webservice-allowed-hostnames=* $CLI_ARGS
fi

0 comments on commit ecda037

Please sign in to comment.