fix plugin update

This commit is contained in:
Youe Graillot 2022-11-26 20:32:48 +01:00
parent 158bc70c3c
commit 42c79cde51
1 changed files with 3 additions and 2 deletions

View File

@ -87,8 +87,9 @@ if [ -z "$plugin" ] || [ "$(echo "$plugin" | jq .updateAvailable)" = "true" ]; t
fi fi
apiCall "POST" "command" '{"name":"InstallPlugin","githubUrl":"'$urlPlugin'"}' apiCall "POST" "command" '{"name":"InstallPlugin","githubUrl":"'$urlPlugin'"}'
while "$(apiCall "GET" "system/plugins" | jq '.[]|select(.name=="Deemix").updateAvailable')" -eq "true"; do while [ -z "$plugin" ] || [ "$(echo "$plugin" | jq .updateAvailable)" = "true" ]; do
sleep 0.1 sleep 1
plugin=$(apiCall "GET" "system/plugins" | jq '.[]|select(.name=="Deemix")')
done done
echo "[autoconfig] Stopping" echo "[autoconfig] Stopping"
/run/s6/basedir/bin/halt /run/s6/basedir/bin/halt