Skip to content

Commit

Permalink
Clarified transmission-home changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkishino committed Oct 22, 2021
1 parent 86eb6a8 commit 53f9a38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions transmission/userSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ if [ -n "$PUID" ] && [ ! "$(id -u root)" -eq "$PUID" ]; then
chown ${RUN_AS}:${RUN_AS} /dev/stdout
fi

echo "TRANSMISSION_HOME is set to: ${TRANSMISSION_HOME}"
echo "TRANSMISSION_HOME is currently set to: ${TRANSMISSION_HOME}"
if [[ "${TRANSMISSION_HOME%/*}" != "/config" ]]; then
echo "WARNING: TRANSMISSION_HOME mountpoint is not on default /config, this is not recommended."
echo "This warning will be displayed as long as TRANSMISSION_HOME is not set to /config mount."
echo "WARNING: TRANSMISSION_HOME is not set to the default /config/<transmission-home>, this is not recommended."
echo "TRANSMISSION_HOME should be set to /config/transmission-home OR another custom directory on /config/<directory>"
echo "If you would like to migrate your existing TRANSMISSION_HOME, please stop the container, add volume /config and move the transmission-home directory there."
fi
#Old default transmission-home exists, use as fallback
if [ -d "/data/transmission-home" ]; then
TRANSMISSION_HOME="/data/transmission-home"
echo "WARNING: Deprecated. Found old default transmission-home folder in the /data mount, setting this as TRANSMISSION_HOME. This might break in future versions."
echo "We will fallback to this directory as long as the folder exists. Please consider moving it to /config"
echo "WARNING: Deprecated. Found old default transmission-home folder at ${TRANSMISSION_HOME}, setting this as TRANSMISSION_HOME. This might break in future versions."
echo "We will fallback to this directory as long as the folder exists. Please consider moving it to /config/<transmission-home>"
fi

# Make sure directories exist before chown and chmod
Expand Down

0 comments on commit 53f9a38

Please sign in to comment.