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

Commit

Permalink
Merge pull request #220 from home-assistant/permissions
Browse files Browse the repository at this point in the history
Homeassistant: Set permissions before install.
  • Loading branch information
Landrash authored Nov 13, 2018
2 parents fe89bcc + 0f92caa commit 78f456c
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 78f456c

Please sign in to comment.