diff --git a/root/etc/services.d/changedetection/run b/root/etc/services.d/changedetection/run index 02661a4..5f2bf06 100755 --- a/root/etc/services.d/changedetection/run +++ b/root/etc/services.d/changedetection/run @@ -1,4 +1,6 @@ #!/usr/bin/with-contenv bash - exec 2>&1 \ - s6-setuidgid abc python3 /app/changedetection/changedetection.py -d /config +cd /app/changedetection || exit 1 + +exec 2>&1 \ + s6-setuidgid abc python3 /app/changedetection/changedetection.py -d /config