Hey everyone,
We built this script to help us with installing new versions and thought it would be helpful for you as well!
Current Limitations:
Only works on Linux. It will NOT download the ARM installer
What does it do?
Checks if OttoFMS is already installed on the server. If so, uninstall it
Downloads the newest installer (based on the version tag)
Unzips and runs the installer in headless mode (you don’t get any UI prompts)
Cleans up — deletes the installer and zip
To run and get the latest version:
sudo curl -sSL "https://appupdates.proofgeist.com/ottofms/install.sh" | bash
To run and get the beta version:
sudo curl -sSL "https://appupdates.proofgeist.com/ottofms/install.sh" | bash -s -- -v beta
To run and get a specific version:
sudo curl -sSL "https://appupdates.proofgeist.com/ottofms/install.sh" | bash -s -- -v 4.0.1-beta.19
john_r
December 22, 2023, 6:12pm
2
works on ARM if you download it locally, edit the ref to amd, chmod +x and run it…
Thanks John! I want to add a part in there that can detect your OS and choose the right version automatically, but I don’t have easy access to a linux ARM machine to test this
john_r
December 22, 2023, 6:27pm
4
use lscpu and the first line returned will either be
Architecture: x86_64
or
Architecture: aarch64
happy to test for you
I have updated the script to include a check for the architecture. Let me know if it works for you!
john_r
December 23, 2023, 8:23pm
6
@eric.luce
running uname -m on my arm test server gives aarch64 and not ‘arm’
kduval
January 8, 2024, 11:28pm
7
Hey john,
I updated this script today to recognize aarch64. We have also changed the urls where you can access the script. I have updated the commands above to reflect the new urls.
Let me know if the aarch change works for you!
-Kyle
john_r
January 9, 2024, 8:06am
8
thanks, will test at next release
Running the script/command for the latest still generates the error:
bash: line 13: syntax error in conditional expression
bash: line 13: syntax error near `-o'
bash: line 13: `if [[ "$MACHINE_ARCH" == "arm"* -o "$MACHINE_ARCH" == "aarch64" ]]; then'
1 Like
kduval
January 9, 2024, 9:31pm
10
Oh yeah a syntax error because we’re in [[]] would make sense. I’ve just updated it, should be correct now
kduval
January 10, 2024, 7:43pm
11
This script information has been added to the OttoFMS docs for ease of access going forward: Updating | OttoFMS
john_r
January 15, 2024, 11:20pm
12
Just updated successfully on my ARM test server.
Many thanks
2 Likes