mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 05:34:20 +01:00
Fix gassistant cherrypy (#148)
* Update hassio_oauth.py * Update config.json * Update run.sh * Update run.sh * Update config.json
This commit is contained in:
@@ -20,11 +20,12 @@ sed -i "s/%%MIC%%/$MIC/g" /root/.asoundrc
|
||||
if [ -f "/share/$CLIENT_SECRETS" ]; then
|
||||
echo "[Info] Install/Update service client_secrets file"
|
||||
cp -f "/share/$CLIENT_SECRETS" "$CLIENT_JSON"
|
||||
rm -f "/share/$CLIENT_SECRETS"
|
||||
fi
|
||||
|
||||
if [ ! -f "$CRED_JSON" ] && [ -f "$CLIENT_JSON" ]; then
|
||||
echo "[Info] Start WebUI for handling oauth2"
|
||||
python3 /hassio_oauth.py "$CLIENT_JSON" "$CRED_JSON"
|
||||
elif [ ! -f "$CRED_JSON" ]; then
|
||||
else
|
||||
echo "[Error] You need initialize GoogleAssistant with a client secret json!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user