diff --git a/lychee/lychee-install.sh b/lychee/lychee-install.sh index 5aa2fcf..45be58c 100644 --- a/lychee/lychee-install.sh +++ b/lychee/lychee-install.sh @@ -1,12 +1,6 @@ #!/bin/sh # Install Lychee -# Check for Root Privileges -if ! [ $(id -u) = 0 ]; then - echo "This script must be run with root privileges" - exit 1 -fi - APP_NAME="Lychee" APP_VERSION="5.5.1" DB_TYPE="MariaDB" @@ -18,6 +12,12 @@ PHP_VERSION="83" MARIADB_VERSION="106" TIME_ZONE="" +# Check for Root Privileges +if ! [ $(id -u) = 0 ]; then + echo "This script must be run with root privileges" + exit 1 +fi + # Variable Checks if [ -z "${TIME_ZONE}" ]; then echo 'Configuration error: TIME_ZONE must be set'