mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 10:34:57 +00:00
Add UMASK
This commit is contained in:
parent
3d8a0858be
commit
1e581a1487
@ -29,6 +29,16 @@ else
|
||||
useradd -c "qbittorent user" -g $PGID -u $PUID qbittorent
|
||||
fi
|
||||
|
||||
# set umask
|
||||
export UMASK=$(echo "${UMASK}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
|
||||
|
||||
if [[ ! -z "${UMASK}" ]]; then
|
||||
echo "[info] UMASK defined as '${UMASK}'" | ts '%Y-%m-%d %H:%M:%.S'
|
||||
else
|
||||
echo "[warn] UMASK not defined (via -e UMASK), defaulting to '022'" | ts '%Y-%m-%d %H:%M:%.S'
|
||||
export UMASK="022"
|
||||
fi
|
||||
|
||||
|
||||
# Set qBittorrent WebUI and Incoming ports
|
||||
if [ ! -z "${WEBUI_PORT}" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user