From 8d6425379ab8560f234eee1552e6daae3500c1d1 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 5 Jul 2023 01:27:36 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/transmission.sh rootfs/usr/local/etc/docker/init.d/zz-default.sh --- .../docker/init.d/{zz-default.sh => transmission.sh} | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) rename rootfs/usr/local/etc/docker/init.d/{zz-default.sh => transmission.sh} (99%) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-default.sh b/rootfs/usr/local/etc/docker/init.d/transmission.sh similarity index 99% rename from rootfs/usr/local/etc/docker/init.d/zz-default.sh rename to rootfs/usr/local/etc/docker/init.d/transmission.sh index f64c94f..c0bef34 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-default.sh +++ b/rootfs/usr/local/etc/docker/init.d/transmission.sh @@ -5,10 +5,10 @@ # @@Author : Jason Hempstead # @@Contact : jason@casjaysdev.com # @@License : WTFPL -# @@ReadME : zz-default.sh --help +# @@ReadME : transmission.sh --help # @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments # @@Created : Tuesday, Jul 04, 2023 22:26 EDT -# @@File : zz-default.sh +# @@File : transmission.sh # @@Description : # @@Changelog : New script # @@TODO : Better documentation @@ -166,9 +166,8 @@ __pre_execute() { local exitCode=0 # default exit code local user="${SERVICE_USER:-root}" # specifiy different user # define commands - - # execute if directories is empty - #__is_dir_empty "" && + mkdir -p "$PWD/.config" + ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon" # create user if needed # __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 echo "Running post commands" # message # execute commands - mkdir -p "$PWD/.config" - ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon" + return $exitCode } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -