Merge pull request #679 from tcely/patch-2

export `TUBESYNC_RESET_DOWNLOAD_DIR`
This commit is contained in:
meeb 2025-02-02 16:47:37 +11:00 committed by GitHub
commit f4eb18aa0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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