-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added init script to set permissions on /tmp.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |