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 rootfs/usr/local/etc/docker/init.d/zz-default.sh
This commit is contained in:
parent
8b20e7756a
commit
8d6425379a
@ -5,10 +5,10 @@
|
|||||||
# @@Author : Jason Hempstead
|
# @@Author : Jason Hempstead
|
||||||
# @@Contact : jason@casjaysdev.com
|
# @@Contact : jason@casjaysdev.com
|
||||||
# @@License : WTFPL
|
# @@License : WTFPL
|
||||||
# @@ReadME : zz-default.sh --help
|
# @@ReadME : transmission.sh --help
|
||||||
# @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments
|
# @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments
|
||||||
# @@Created : Tuesday, Jul 04, 2023 22:26 EDT
|
# @@Created : Tuesday, Jul 04, 2023 22:26 EDT
|
||||||
# @@File : zz-default.sh
|
# @@File : transmission.sh
|
||||||
# @@Description :
|
# @@Description :
|
||||||
# @@Changelog : New script
|
# @@Changelog : New script
|
||||||
# @@TODO : Better documentation
|
# @@TODO : Better documentation
|
||||||
@ -166,9 +166,8 @@ __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"
|
||||||
# execute if directories is empty
|
ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon"
|
||||||
#__is_dir_empty "" &&
|
|
||||||
|
|
||||||
# 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}"
|
||||||
@ -195,8 +194,7 @@ __post_execute() {
|
|||||||
sleep 60 # how long to wait before executing
|
sleep 60 # how long to wait before executing
|
||||||
echo "Running post commands" # message
|
echo "Running post commands" # message
|
||||||
# execute commands
|
# execute commands
|
||||||
mkdir -p "$PWD/.config"
|
|
||||||
ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon"
|
|
||||||
return $exitCode
|
return $exitCode
|
||||||
}
|
}
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
Loading…
x
Reference in New Issue
Block a user