Skip to content

Commit

Permalink
Merge pull request #679 from tcely/patch-2
Browse files Browse the repository at this point in the history
export `TUBESYNC_RESET_DOWNLOAD_DIR`
  • Loading branch information
meeb authored Feb 2, 2025
2 parents 4902a44 + 3939616 commit f4eb18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/root/etc/s6-overlay/s6-rc.d/tubesync-init/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4eb18a

Please sign in to comment.