Skip to content

Commit e74db7b

Browse files
scroolfabaff
authored andcommitted
Fedora improvements (home-assistant#7774)
* Remove group gpio from Installation instructions for Fedora That group doesn't exist on Fedora by default. I believe it makes more sense to add homeassistant to that group later when that group needs to be created. * sudo to homeassistant before virtualenv is activated on Fedora Very similar approach to Debian-based installation needs to be done here. In the previous block of commands user homeassistant is created and directories are chowned to him. If one would try to run followup pip3 install or even hass itself as current user he wouldn't be able to write to those directories or that homeassistant user would be just useless.
1 parent be88529 commit e74db7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/_docs/installation/fedora.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ To isolate the Home Assistant installation a [venv](https://docs.python.org/3/li
2727

2828
```bash
2929
$ sudo mkdir -p /opt/homeassistant
30-
$ sudo useradd -rm homeassistant -G dialout,gpio
30+
$ sudo useradd -rm homeassistant -G dialout
3131
$ sudo chown -R homeassistant:homeassistant /opt/homeassistant
3232
```
3333
Now switch to the new directory, setup the venv, and activate it.
3434

3535
```bash
36+
$ sudo -u homeassistant -H -s
3637
$ cd /opt/homeassistant
3738
$ python3.6 -m venv .
3839
$ source bin/activate

0 commit comments

Comments
 (0)