Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

homeassistant: Restart after upgrade. #160

Merged
merged 1 commit into from
Apr 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions package/opt/hassbian/suites/homeassistant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ EOF
exit 1
fi
fi
echo "Stopping Home Assistant"
systemctl stop [email protected]

echo "Changing to the homeassistant user"
sudo -u homeassistant -H /bin/bash << EOF
Expand All @@ -121,7 +119,7 @@ deactivate
EOF

echo "Restarting Home Assistant"
systemctl start [email protected]
systemctl restart [email protected]

echo "Checking the installation..."
validation=$(pgrep -x hass)
Expand Down