Merge branch 'master' of https://github.com/dcrdev/docker-transmission-openvpn into dcrdev-master
This commit is contained in:
@@ -16,21 +16,29 @@ if [ -n "$PUID" ] && [ ! "$(id -u root)" -eq "$PUID" ]; then
|
||||
${TRANSMISSION_INCOMPLETE_DIR} \
|
||||
${TRANSMISSION_WATCH_DIR}
|
||||
|
||||
echo "Setting owner for transmission paths to ${PUID}:${PGID}"
|
||||
echo "Enforcing ownership on transmission config directories"
|
||||
chown -R ${RUN_AS}:${RUN_AS} \
|
||||
/config \
|
||||
${TRANSMISSION_HOME} \
|
||||
${TRANSMISSION_DOWNLOAD_DIR} \
|
||||
${TRANSMISSION_INCOMPLETE_DIR} \
|
||||
${TRANSMISSION_WATCH_DIR}
|
||||
|
||||
echo "Setting permission for files (644) and directories (755)"
|
||||
${TRANSMISSION_HOME}
|
||||
|
||||
echo "Applying permissions to transmission config directories"
|
||||
chmod -R go=rX,u=rwX \
|
||||
/config \
|
||||
${TRANSMISSION_HOME} \
|
||||
${TRANSMISSION_DOWNLOAD_DIR} \
|
||||
${TRANSMISSION_INCOMPLETE_DIR} \
|
||||
${TRANSMISSION_WATCH_DIR}
|
||||
${TRANSMISSION_HOME}
|
||||
|
||||
if [ "$GLOBAL_APPLY_PERMISSIONS" = true ] ; then
|
||||
echo "Setting owner for transmission paths to ${PUID}:${PGID}"
|
||||
chown -R ${RUN_AS}:${RUN_AS} \
|
||||
${TRANSMISSION_DOWNLOAD_DIR} \
|
||||
${TRANSMISSION_INCOMPLETE_DIR} \
|
||||
${TRANSMISSION_WATCH_DIR}
|
||||
|
||||
echo "Setting permission for files (644) and directories (755)"
|
||||
chmod -R go=rX,u=rwX \
|
||||
${TRANSMISSION_DOWNLOAD_DIR} \
|
||||
${TRANSMISSION_INCOMPLETE_DIR} \
|
||||
${TRANSMISSION_WATCH_DIR}
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "
|
||||
|
Reference in New Issue
Block a user