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