fix plugin update
This commit is contained in:
parent
158bc70c3c
commit
42c79cde51
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue