core: add cli parameters in jackett_launcher.sh (#8768)

This commit is contained in:
Diego Heras 2020-05-25 23:12:07 +02:00 committed by GitHub
parent 105cd61c02
commit 0abb8c8b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -6,13 +6,13 @@
# Get full Jackett root path
JACKETT_DIR="$(dirname "$(readlink -f "$0")")"
# Launch Jackett
"${JACKETT_DIR}/jackett" --NoRestart
# Launch Jackett (with CLI parameters)
"${JACKETT_DIR}/jackett" --NoRestart "$@"
# Get user running the service
JACKETT_USER=$(whoami)
# Wait until the updater ends
while pgrep -u "${JACKETT_USER}" JackettUpdater > /dev/null; do
sleep 1
sleep 1
done