Changed commits per @stevietv and made a few observations that needed to be cleaned up myself. Primairly moving the arch check before the title splash.
### Version V1.0.1 2024-01-02 - StevieTV - remove UTF8-BOM
### Version V1.0.2 2024-01-03 - markus101 - Get user input from /dev/tty
### Version V1.0.3 2024-01-06 - StevieTV - exit script when it is ran from install
### Version V1.0.4 2024-04-10 - nostrusdominion - added colors, moved root check, added title splash screen, improved readablity, changed app_prereq to not bother apt if they are already installed, supressed tarball extraction, add sleep timers.
### Version V1.0.4 2024-04-10 - nostrusdominion - added colors, moved root check, moved architecture check, added title splash screen, improved readablity, changed app_prereq to not bother apt if they are already installed, supressed tarball extraction, add sleep timers.
### Boilerplate Warning
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
@ -36,6 +36,36 @@ if [ "$EUID" -ne 0 ]; then
exit
fi
# Stuff the gremlins needs to know
app="sonarr"
app_port="8989"
app_prereq="curl sqlite3 wget"
app_umask="0002"
branch="main"
### CONSTANTS
### Update these variables as required for your specific instance
installdir="/opt"# {Update me if needed} Install Location
bindir="${installdir}/${app^}"# Full Path to Install Location
datadir="/var/lib/$app/"# {Update me if needed} AppData directory to use
echo -e " Running version ${brown}[$scriptversion]${reset} as of ${brown}[$scriptdate]${reset}"
# Stuff the gremlins needs to know
app="sonarr"
app_port="8989"
app_prereq="curl sqlite3 wget"
app_umask="0002"
branch="main"
### CONSTANTS
### Update these variables as required for your specific instance
installdir="/opt"# {Update me if needed} Install Location
bindir="${installdir}/${app^}"# Full Path to Install Location
datadir="/var/lib/$app/"# {Update me if needed} AppData directory to use
app_bin=${app^}# Binary Name of the app
# This script should not be ran from installdir, otherwise later in the script the extracted files will be removed before they can be moved to installdir.