From 3939616d319cbd4e5d70b08be930e66d0eec302f Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 1 Feb 2025 19:54:49 -0500 Subject: [PATCH] export `TUBESYNC_RESET_DOWNLOAD_DIR` We don't need to overcomplicate this. `sh` and `bash` provide easy ways to set empty variables. --- config/root/etc/s6-overlay/s6-rc.d/tubesync-init/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/root/etc/s6-overlay/s6-rc.d/tubesync-init/run b/config/root/etc/s6-overlay/s6-rc.d/tubesync-init/run index 99df43a4..4ac5ff8e 100755 --- a/config/root/etc/s6-overlay/s6-rc.d/tubesync-init/run +++ b/config/root/etc/s6-overlay/s6-rc.d/tubesync-init/run @@ -21,9 +21,9 @@ find /app -type f ! -iname healthcheck.py -exec chmod 640 {} \; chmod 0755 /app/healthcheck.py # Optionally reset the download dir permissions -TUBESYNC_RESET_DOWNLOAD_DIR="${TUBESYNC_RESET_DOWNLOAD_DIR:-True}" -if [ "$TUBESYNC_RESET_DOWNLOAD_DIR" == "True" ] +if [ "${TUBESYNC_RESET_DOWNLOAD_DIR:=True}" == "True" ] then + export TUBESYNC_RESET_DOWNLOAD_DIR echo "TUBESYNC_RESET_DOWNLOAD_DIR=True, Resetting /downloads directory permissions" chown -R app:app /downloads chmod -R 0755 /downloads