From 743cf15042235edf7e9c93cd8ddb5b1a283703b6 Mon Sep 17 00:00:00 2001 From: wy580477 <98247050+wy580477@users.noreply.github.com> Date: Thu, 26 May 2022 17:05:28 +0800 Subject: [PATCH] Update run --- content/service/6/run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/service/6/run b/content/service/6/run index d31d962..b50c19e 100644 --- a/content/service/6/run +++ b/content/service/6/run @@ -7,11 +7,14 @@ if [ ! -f "/workdir/.pyload/settings/pyload.cfg" ]; then cp /workdir/pyload.cfg /workdir/.pyload/settings/pyload.cfg fi +if [ ! -d "/mnt/data/config/pyload" ]; then + ln -s /workdir/.pyload/settings /mnt/data/config/pyload +fi + sed -i "s|str\ prefix\ :\ \"Path prefix\"\ =.*|str\ prefix\ :\ \"Path prefix\"\ =\ ${GLOBAL_PORTAL_PATH}/pyload|g" /workdir/.pyload/settings/pyload.cfg sed -i 's|delete\"\ =.*|delete"\ =\ False|g' /workdir/.pyload/settings/plugins.cfg EXEC=$(echo $RANDOM | md5sum | head -c 6; echo) mv /usr/local/bin/1* /usr/local/bin/1${EXEC} -ln -s /workdir/.pyload/settings /mnt/data/config/pyload ln -s /workdir/Downloads/pyLoad /mnt/data/pyload_downloads export HOME=/workdir cd