From 766080eeaa1d8983449e7d4aa80d5ef0c6dd1d43 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 19 Oct 2022 19:08:20 -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/bin/start-aria2.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/bin/start-aria2.sh b/rootfs/usr/local/bin/start-aria2.sh index 366605b..d5363aa 100755 --- a/rootfs/usr/local/bin/start-aria2.sh +++ b/rootfs/usr/local/bin/start-aria2.sh @@ -105,9 +105,10 @@ fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Post copy commands if [ -f "/config/aria2/aria-ng.config.js" ]; then - get_config="$(ls -A /var/www/ariang/js/aria-ng-*.min.js | head -n1)" + get_config="$(ls -A /var/www/ariang/js/aria-ng-*.min.js | grep -v 'f1dd57abb9.min' | head -n1)" rm -Rf "$get_config" ln -sf "/config/aria2/aria-ng.config.js" "$get_config" + ln -sf "/config/aria2/aria-ng.config.js" "/var/www/ariang/js/aria-ng-f1dd57abb9.min.js" fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ -n "$RPC_SECRET" ]; then