Skip to content

Commit

Permalink
Added init script to set permissions on /tmp.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Nov 26, 2022
1 parent f57120b commit 8f58099
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rootfs/etc/cont-init.d/10-set-tmp-dir-perms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

#
# Make sure permissions on the /tmp directory are properly set.
#
# We have seen cases on QNAP NAS where, for some reason, permissions were
# incorrect. See https://github.com/jlesage/docker-jdownloader-2/issues/98.
#

set -e # Exit immediately if a command exits with a non-zero status.
set -u # Treat unset variables as an error.

chmod 1777 /tmp

# vim:ft=sh:ts=4:sw=4:et:sts=4

0 comments on commit 8f58099

Please sign in to comment.