Some rpc_shutdown improvments (#186)

* Update run.sh

* Update config.json

* Update config.json
This commit is contained in:
Pascal Vizeli
2017-10-08 11:09:00 +02:00
committed by GitHub
parent cb50a96257
commit b2caa2bba1
2 changed files with 4 additions and 1 deletions

View File

@@ -1,12 +1,13 @@
{
"name": "RPC Shutdown",
"version": "0.1",
"version": "0.2",
"slug": "rpc_shutdown",
"description": "Simple way for remote windows shutdowns",
"url": "https://home-assistant.io/addons/rpc_shutdown/",
"startup": "services",
"boot": "auto",
"stdin": true,
"host_network": true,
"options": {
"computers": [
{

View File

@@ -7,6 +7,8 @@ COMPUTERS=$(jq --raw-output '.computers | length' $CONFIG_PATH)
# Read from STDIN aliases to send shutdown
while read -r input; do
# remove json stuff
input="$(echo "$input" | jq --raw-output '.')"
echo "[Info] Read alias: $input"
# Find aliases -> computer