Skip to content

Commit

Permalink
Update run
Browse files Browse the repository at this point in the history
  • Loading branch information
wy580477 committed May 26, 2022
1 parent 352cda3 commit 743cf15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/service/6/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 743cf15

Please sign in to comment.