mirror of
https://github.com/casjaysdevdocker/transmission
synced 2025-01-18 00:34:26 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/transmission.sh
This commit is contained in:
parent
ab021fe697
commit
192573e50c
@ -82,7 +82,7 @@ SERVICE_UID="0" # set the user id
|
|||||||
SERVICE_USER="root" # execute command as another user
|
SERVICE_USER="root" # execute command as another user
|
||||||
EXEC_CMD_BIN="transmission-daemon" # command to execute
|
EXEC_CMD_BIN="transmission-daemon" # command to execute
|
||||||
EXEC_CMD_ARGS="-f --config-dir $CONF_DIR/" # command arguments
|
EXEC_CMD_ARGS="-f --config-dir $CONF_DIR/" # command arguments
|
||||||
EXEC_PRE_SCRIPT="sleep 20 &&" # execute script before
|
EXEC_PRE_SCRIPT="" # execute script before
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Is this service a web server
|
# Is this service a web server
|
||||||
IS_WEB_SERVER="no"
|
IS_WEB_SERVER="no"
|
||||||
@ -121,6 +121,7 @@ __update_conf_files() {
|
|||||||
local local_trans_conf_dir="${WORKDIR:-$PWD}/.config/transmission-daemon"
|
local local_trans_conf_dir="${WORKDIR:-$PWD}/.config/transmission-daemon"
|
||||||
|
|
||||||
# define actions
|
# define actions
|
||||||
|
mkdir -p "$local_trans_conf_dir" "/tmp/docker/.config"
|
||||||
|
|
||||||
# create default directories
|
# create default directories
|
||||||
for filedirs in $ADD_APPLICATION_DIRS $APPLICATION_DIRS; do
|
for filedirs in $ADD_APPLICATION_DIRS $APPLICATION_DIRS; do
|
||||||
@ -150,8 +151,8 @@ __update_conf_files() {
|
|||||||
# replace variables recursively
|
# replace variables recursively
|
||||||
# __find_replace "" "" "$CONF_DIR/"
|
# __find_replace "" "" "$CONF_DIR/"
|
||||||
# custom commands
|
# custom commands
|
||||||
mkdir -p "$local_trans_conf_dir"
|
|
||||||
ln -sf "$CONF_DIR" "$local_trans_conf_dir"
|
ln -sf "$CONF_DIR" "$local_trans_conf_dir"
|
||||||
|
ln -sf "$CONF_DIR" "/tmp/docker/.config/transmission-daemon"
|
||||||
|
|
||||||
# other
|
# other
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user