mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-11 09:30:00 +01:00
Update lychee-install.sh - minor edits
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user