Skip to content

Commit

Permalink
Auto-update pyLoad after service restarted
Browse files Browse the repository at this point in the history
  • Loading branch information
wy580477 committed Feb 2, 2023
1 parent c28baa6 commit 144d6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/service/pyload/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

exec 2>&1
pipx upgrade --pip-args='--no-cache-dir' pyload-ng
CONF_PATH=/mnt/data/config/.pyload

mkdir -p /mnt/data/pyload_downloads ${CONF_PATH}/settings ${CONF_PATH}/scripts/download_finished ${CONF_PATH}/scripts/package_extracted 2>/dev/null

if [ ! -f "${CONF_PATH}/settings/pyload.cfg" ]; then
Expand All @@ -18,6 +19,5 @@ export HOME=/mnt/data/config
cd

# Run pyload
exec 2>&1
pyload --quit
exec pyload

0 comments on commit 144d6ec

Please sign in to comment.