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

Homeassistant: Set permissions before install. #220

Merged
merged 1 commit into from
Nov 13, 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
6 changes: 6 additions & 0 deletions package/opt/hassbian/suites/homeassistant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ function homeassistant-show-copyright-info {
}

function homeassistant-install-package {
echo "Setting correct premissions"
chown homeassistant:homeassistant -R /srv/homeassistant

echo "Changing to the homeassistant user"
sudo -u homeassistant -H /bin/bash << EOF

Expand Down Expand Up @@ -100,6 +103,9 @@ EOF
fi
fi

echo "Setting correct premissions"
chown homeassistant:homeassistant -R /srv/homeassistant

echo "Changing to the homeassistant user"
sudo -u homeassistant -H /bin/bash << EOF

Expand Down