From 8f580995880412001278cf97afa6d1d1161d8901 Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Fri, 25 Nov 2022 19:30:39 -0500 Subject: [PATCH] Added init script to set permissions on /tmp. --- rootfs/etc/cont-init.d/10-set-tmp-dir-perms.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 rootfs/etc/cont-init.d/10-set-tmp-dir-perms.sh diff --git a/rootfs/etc/cont-init.d/10-set-tmp-dir-perms.sh b/rootfs/etc/cont-init.d/10-set-tmp-dir-perms.sh new file mode 100755 index 0000000..026939d --- /dev/null +++ b/rootfs/etc/cont-init.d/10-set-tmp-dir-perms.sh @@ -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