Skip to content

Commit 7130abc

Browse files
lcerslyLandrash
authored andcommitted
Update installation-synology.markdown (home-assistant#1293)
Changed su to sudo as DSM 6.0. Changed some of the commands to be more newbie friendly.
1 parent 0e436f8 commit 7130abc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/getting-started/installation-synology.markdown

+7-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ $ cd /volume1/@appstore/py3k/usr/local/bin
4040
Install PIP (Python's package management system)
4141

4242
```bash
43-
$ python -m ensurepip
43+
$ ./python3 -m ensurepip
4444
```
4545

4646
Use PIP to install Homeassistant package
4747

4848
```bash
49-
$ pip3 install homeassistant
49+
$ ./python3 pip install homeassistant
5050
```
5151

5252
Create homeassistant config directory & switch to it
@@ -77,7 +77,7 @@ REDIRECT="> $INSTALL_DIR/home-assistant.log 2>&1"
7777

7878
start_daemon ()
7979
{
80-
su ${USER} -s /bin/sh -c "$PYTHON $HASS $FLAGS $REDIRECT;"
80+
sudo -u ${USER} /bin/sh -c "$PYTHON $HASS $FLAGS $REDIRECT;"
8181
}
8282

8383
stop_daemon ()
@@ -204,25 +204,25 @@ Here are some useful commands:
204204
- Start Home Assistant:
205205

206206
```bash
207-
$ sh hass-daemon start
207+
$ sudo /volume1/homeassistant/hass-daemon start
208208
```
209209

210210
- Stop Home Assistant:
211211

212212
```bash
213-
$ sh hass-daemon stop
213+
$ sudo /volume1/homeassistant/hass-daemon stop
214214
```
215215

216216
- Restart Home Assistant:
217217

218218
```bash
219-
$ sh hass-daemon restart
219+
$ sudo /volume1/homeassistant/hass-daemon restart
220220
```
221221

222222
- Upgrade Home Assistant::
223223

224224
```bash
225-
$ python3 -m pip install --upgrade homeassistant
225+
$ /volume1/@appstore/py3k/usr/local/bin/python3 -m pip install --upgrade homeassistant
226226
```
227227

228228
### {% linkable_title Troubleshooting %}

0 commit comments

Comments
 (0)