This commit is contained in:
2024-05-24 18:44:12 +00:00
parent f5c1a52564
commit ce91c23597
4 changed files with 166 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
The linux server upgrade process involves replacing the AyaNova program files with the latest version and restarting the AyaNova server.
These instructions assume the original installation steps were followed without changes, if you had to make changes adjust accordingly.
These instructions assume the original installation steps were followed without changes and Ubuntu or compatible distro was used, if you had to make changes or have an alternative distro adjust accordingly.
### Expired Maintenance plan
@@ -16,7 +16,28 @@ If you do not have a fresh backup there will be no way to recover from potential
### 2\. Upgrade
Ensure all other Users are logged out of AyaNova before proceeding.
#### Pre-upgrade step
If your current AyaNova version is older than 8.2.0 there is an extra step before the normal upgrade script process below.
8.2.0 switched to .NET 8 LTS from the prior used .NET 6 LTS and also switched to using Chrome instead of Chromium for the report rendering headless browser so this script accomodates these changes.
From a terminal window run the following commands:
```bash
sudo apt-get update && apt-get upgrade && \
sudo apt-get install -y aspnetcore-runtime-8.0 && \
sudo mkdir /var/ayanova/Chrome && \
sudo mkdir /var/ayanova/ChromeHeadlessShell && \
sudo chown -vR :www-data /var/ayanova && \
sudo chmod -R g+rwx /var/ayanova/Chrome && \
sudo chmod -R g+rwx /var/ayanova/ChromeHeadlessShell && \
sudo chmod g+rw /var/ayanova/
```
If there is an issue or error break apart the commands and execute each one individually to find the error.
#### upgrade script
The following shell script will automatically stop the AyaNova server service, remove the old AyaNova files, download and unzip the latest AyaNova files then start the server service.