From 42c79cde511bf19ee26f3d93ae39f5f45e9c4dee Mon Sep 17 00:00:00 2001 From: Youe Graillot Date: Sat, 26 Nov 2022 20:32:48 +0100 Subject: [PATCH] fix plugin update --- root/etc/services.d/setup/run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/root/etc/services.d/setup/run b/root/etc/services.d/setup/run index a316b59..3e5cab9 100644 --- a/root/etc/services.d/setup/run +++ b/root/etc/services.d/setup/run @@ -87,8 +87,9 @@ if [ -z "$plugin" ] || [ "$(echo "$plugin" | jq .updateAvailable)" = "true" ]; t fi apiCall "POST" "command" '{"name":"InstallPlugin","githubUrl":"'$urlPlugin'"}' - while "$(apiCall "GET" "system/plugins" | jq '.[]|select(.name=="Deemix").updateAvailable')" -eq "true"; do - sleep 0.1 + while [ -z "$plugin" ] || [ "$(echo "$plugin" | jq .updateAvailable)" = "true" ]; do + sleep 1 + plugin=$(apiCall "GET" "system/plugins" | jq '.[]|select(.name=="Deemix")') done echo "[autoconfig] Stopping" /run/s6/basedir/bin/halt