Update lychee-install.sh - minor edits

This commit is contained in:
tschettervictor
2024-09-29 17:05:32 -06:00
committed by GitHub
parent 7d0ced7a15
commit 0d63dbdc38

View File

@@ -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'