Update core upgrade instructions (#23058)

This commit is contained in:
Erik Montnemery 2022-06-09 08:37:24 +02:00 committed by GitHub
parent aeccb306ef
commit d51195e7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 16 deletions

View File

@ -48,24 +48,26 @@ docker pull {{ site.installation.container }}:beta
{% elsif page.installation == "core" %}
1. Switch to the user that is running Home Assistant
1. Stop the Home Assistant service.
2. Switch to the user that is running Home Assistant
```bash
sudo -u homeassistant -H -s
```
2. Activate the virtual environment that Home Assistant is running in
3. Activate the virtual environment that Home Assistant is running in
```bash
source /srv/homeassistant/bin/activate
```
3. Download and install the beta version
4. Download and install the beta version
```bash
pip3 install --pre --upgrade homeassistant
```
4. When that is complete restart the service for it to use the new files.
5. When that is complete start the service again for it to use the new files.
{% endif %}

View File

@ -38,24 +38,26 @@ docker pull {{ site.installation.container }}:dev
{% elsif page.installation == "core" %}
1. Switch to the user that is running Home Assistant
1. Stop the Home Assistant service.
2. Switch to the user that is running Home Assistant
```bash
sudo -u homeassistant -H -s
```
2. Activate the virtual environment that Home Assistant is running in
3. Activate the virtual environment that Home Assistant is running in
```bash
source /srv/homeassistant/bin/activate
```
3. Download and install the version you want
4. Download and install the version you want
```bash
pip3 install --upgrade git+https://github.com/home-assistant/core.git@dev
```
4. When that is complete restart the service for it to use the new files.
5. When that is complete start the service again for it to use the new files.
{% endif %}

View File

@ -20,24 +20,26 @@ docker pull {{ site.installation.container }}:{{current_version}}
{% elsif page.installation == "core" %}
1. Switch to the user that is running Home Assistant
1. Stop the Home Assistant service.
2. Switch to the user that is running Home Assistant
```bash
sudo -u homeassistant -H -s
```
2. Activate the virtual environment that Home Assistant is running in
3. Activate the virtual environment that Home Assistant is running in
```bash
source /srv/homeassistant/bin/activate
```
3. Download and install the version you want
4. Download and install the version you want
```bash
pip3 install homeassistant=={{current_version}}
```
4. When that is complete restart the service for it to use the new files.
5. When that is complete start the service again for it to use the new files.
{% endif %}

View File

@ -61,24 +61,26 @@ To update Home Assistant Core when you run Home Assistant {{ page.installation_n
{% elsif page.installation == "core" %}
1. Switch to the user that is running Home Assistant
1. Stop the Home Assistant service.
2. Switch to the user that is running Home Assistant
```bash
sudo -u homeassistant -H -s
```
2. Activate the virtual environment that Home Assistant is running in
3. Activate the virtual environment that Home Assistant is running in
```bash
source /srv/homeassistant/bin/activate
```
3. Download and install the new version
4. Download and install the new version
```bash
pip3 install --upgrade homeassistant
```
4. When that is complete restart the service for it to use the new files.
5. When that is complete start the service again for it to use the new files.
{% endif %}