Update photoprism-install.sh - minor edits

This commit is contained in:
tschettervictor
2024-09-29 16:58:02 -06:00
committed by GitHub
parent de16a6facd
commit 44bee10e80

View File

@@ -1,12 +1,6 @@
#!/bin/sh
# Install Photoprism
# Check for Root Privileges
if ! [ $(id -u) = 0 ]; then
echo "This script must be run with root privileges"
exit 1
fi
APP_NAME="Photoprism"
ADMIN_PASSWORD=$(openssl rand -base64 12)
DB_TYPE="MariaDB"
@@ -28,6 +22,12 @@ PHOTOPRISM_PKG="https://github.com/Gaojianli/photoprism-freebsd-port/releases/do
# Uncomment for FreeBSD 14
#PHOTOPRISM_PKG="https://github.com/Gaojianli/photoprism-freebsd-port/releases/download/240915-e1280b2fb/photoprism-g20240915-FreeBSD-14.1-RELEASE.pkg"
# Check for Root Privileges
if ! [ $(id -u) = 0 ]; then
echo "This script must be run with root privileges"
exit 1
fi
# Check for Reinstall
if [ "$(ls -A /var/db/mysql/"${DB_NAME}" 2>/dev/null)" ]; then
echo "Existing ${APP_NAME} database detected."