Tdarr/docker/root/etc/services.d/tdarr_node/run

14 lines
341 B
Plaintext

#!/usr/bin/with-contenv bash
cd /app/Tdarr_Node || exit 1
if [ -d "/etc/services.d/tdarr_server" ] && [ "$internalNode" = true ]; then \
echo "Starting Tdarr_Node"
exec s6-setuidgid Tdarr ./Tdarr_Node
fi
if [ ! -d "/etc/services.d/tdarr_server" ]; then \
echo "Starting Tdarr_Node"
exec s6-setuidgid Tdarr ./Tdarr_Node
fi