From 0f85fa867c1ea9c2f5fe45abb3a261fc5ff77d4c Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 13 May 2025 16:53:15 -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/00-aria2c.sh --- rootfs/usr/local/etc/docker/init.d/00-aria2c.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh b/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh index d096187..7f271cf 100755 --- a/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh +++ b/rootfs/usr/local/etc/docker/init.d/00-aria2c.sh @@ -223,7 +223,7 @@ __update_conf_files() { local sysname="${SERVER_NAME:-${FULL_DOMAIN_NAME:-$HOSTNAME}}" # set hostname local get_data_dir="$(grep -Rs 'dir=' "/config/aria2/aria2.conf" | awk -F'=' '{print $2}')" local get_config="$(find "$WWW_ROOT_DIR/js" -name 'aria-ng-*.min.js' | grep -v 'f1dd57abb9.min' | head -n1)" - + local get_session_file="$(grep -Rs 'aria2.session' "/config/aria2/aria2.conf" | awk -F'=' '{print $2}' | head -n1)" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # delete files #__rm "" @@ -251,6 +251,7 @@ __update_conf_files() { fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # define actions + [ -n "$get_session_file" ] && touch "$get_session_file" if [ -n "$get_data_dir" ]; then [ -d "$get_data_dir" ] || mkdir -p "$get_data_dir" fi