🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/transmission.sh
This commit is contained in:
casjay 2023-07-05 09:32:00 -04:00
parent f930a55140
commit 3cfd8378ab
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -16,7 +16,7 @@
# @@Resource : # @@Resource :
# @@Terminal App : no # @@Terminal App : no
# @@sudo/root : no # @@sudo/root : no
# @@Template : shell/zsh # @@Template : shell/bash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# shellcheck disable=SC2016 # shellcheck disable=SC2016
# shellcheck disable=SC2031 # shellcheck disable=SC2031
@ -75,7 +75,7 @@ DATABASE_DIR="${DATABASE_DIR_TRANSMISSION:-/data/db/transmission}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# port which service is listening on # port which service is listening on
SERVICE_PORT="" SERVICE_PORT="9091"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# execute command variables # execute command variables
SERVICE_UID="0" # set the user id SERVICE_UID="0" # set the user id
@ -119,9 +119,6 @@ __update_conf_files() {
local exitCode=0 # default exit code local exitCode=0 # default exit code
local user="${SERVICE_USER:-root}" # specifiy different user local user="${SERVICE_USER:-root}" # specifiy different user
# delete files
#__rm ""
# define actions # define actions
# create default directories # create default directories
@ -152,6 +149,8 @@ __update_conf_files() {
# replace variables recursively # replace variables recursively
# __find_replace "" "" "$CONF_DIR/" # __find_replace "" "" "$CONF_DIR/"
# custom commands # custom commands
mkdir -p "$PWD/.config"
ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon"
# other # other
@ -166,8 +165,6 @@ __pre_execute() {
local exitCode=0 # default exit code local exitCode=0 # default exit code
local user="${SERVICE_USER:-root}" # specifiy different user local user="${SERVICE_USER:-root}" # specifiy different user
# define commands # define commands
mkdir -p "$PWD/.config"
ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon"
# create user if needed # create user if needed
# __create_service_user "$user" "/home/$user" "${USER_GID:-${USER_UID:-1000}" # __create_service_user "$user" "/home/$user" "${USER_GID:-${USER_UID:-1000}"