45 lines
1.9 KiB
Markdown
45 lines
1.9 KiB
Markdown
# AyaNova linux desktop platform upgrade
|
|
|
|
The linux desktop 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.
|
|
|
|
### Expired Maintenance plan
|
|
|
|
If you do not have an active Maintenance plan you will [not be able to update](adm-license.md#maintenance-expired-message).
|
|
|
|
### 1\. Backup
|
|
|
|
Before proceeding, [make a backup](ops-form-backup.md) of the database **and** the attachment files and store it in a safe place.
|
|
|
|
If you do not have a fresh backup there will be no way to recover from potential data loss or damage.
|
|
|
|
### 2\. Stop the AyaNova server
|
|
|
|
To shut down the AyaNova server cleanly use the AyaNova web app form accessed from Server Operations -> Server State and the menu item [Shut down server](ops-server-state.md#shutting-down-the-ayanova-server).
|
|
|
|
Alternatively you can hard shut down AyaNova using the ctrl-c key combination in the terminal console window where AyaNova is running however this is not recommended.
|
|
|
|
### 3\. Upgrade
|
|
|
|
The following shell script will automatically remove the old AyaNova files, download and unzip the latest AyaNova files then start the server.
|
|
|
|
From a terminal window run the following commands:
|
|
|
|
```bash
|
|
cd /opt/ayanova && \
|
|
sudo curl -O https://www.ayanova.com/download/ayanova-linux-x64-desktop.zip && \
|
|
sudo rm *.dll && \
|
|
sudo rm -r ./resource && \
|
|
sudo rm -r ./wwwroot && \
|
|
sudo unzip -o ayanova-linux-x64-desktop.zip -x "config.json" && \
|
|
sudo chmod 777 ./AyaNova && \
|
|
sudo ./AyaNova
|
|
```
|
|
|
|
If there is an issue or error break apart the commands and execute each one individually to find the error.
|
|
|
|
AyaNova should restart on it's own and perform any database schema updates if required automatically.
|
|
|
|
Open the login form in your browser and after a short delay you should see the new version number at the bottom of the login form.
|