docker-beets/root/etc/s6-overlay/s6-rc.d/svc-beets/run
2025-01-27 17:20:55 +00:00

12 lines
325 B
Text
Executable file

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \
s6-setuidgid abc beet web
else
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \
beet web
fi