From d51195e7fd5b9908692ee4e635be73937d0487b1 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 9 Jun 2022 08:37:24 +0200 Subject: [PATCH] Update core upgrade instructions (#23058) --- source/_includes/common-tasks/beta_version.md | 10 ++++++---- source/_includes/common-tasks/development_version.md | 10 ++++++---- source/_includes/common-tasks/specific_version.md | 10 ++++++---- source/_includes/common-tasks/update.md | 10 ++++++---- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/source/_includes/common-tasks/beta_version.md b/source/_includes/common-tasks/beta_version.md index f940982e7b6..e6e3f759574 100644 --- a/source/_includes/common-tasks/beta_version.md +++ b/source/_includes/common-tasks/beta_version.md @@ -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 %} diff --git a/source/_includes/common-tasks/development_version.md b/source/_includes/common-tasks/development_version.md index 203e5e3a75e..8c8d8cd5d2b 100644 --- a/source/_includes/common-tasks/development_version.md +++ b/source/_includes/common-tasks/development_version.md @@ -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 %} diff --git a/source/_includes/common-tasks/specific_version.md b/source/_includes/common-tasks/specific_version.md index d570267a644..f093bf13b5f 100644 --- a/source/_includes/common-tasks/specific_version.md +++ b/source/_includes/common-tasks/specific_version.md @@ -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 %} diff --git a/source/_includes/common-tasks/update.md b/source/_includes/common-tasks/update.md index 934d853901f..bc5decc319d 100644 --- a/source/_includes/common-tasks/update.md +++ b/source/_includes/common-tasks/update.md @@ -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 %}