mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2026-01-03 03:08:43 +01:00
Update photoprism-install.sh - small edits
This commit is contained in:
@@ -61,7 +61,7 @@ if [ "${REINSTALL}" == "true" ]; then
|
||||
else
|
||||
if ! mysql -u root -e "CREATE DATABASE ${DB_NAME} CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;"
|
||||
then
|
||||
echo "Failed to create MariaDB database, aborting"
|
||||
echo "Failed to create ${APP_NAME} database, aborting"
|
||||
exit 1
|
||||
fi
|
||||
mysql -u root -e "CREATE USER '${DB_USER}'@localhost IDENTIFIED BY '${DB_PASSWORD}';"
|
||||
@@ -102,7 +102,7 @@ sysrc photoprism_storagepath="/mnt/photos/"
|
||||
sysrc photoprism_defaultsyaml="/mnt/photos/options.yml"
|
||||
service photoprism start
|
||||
|
||||
# Save Passwords for Later Reference
|
||||
# Save Passwords
|
||||
echo "${DB_TYPE} root user is root and password is ${DB_ROOT_PASSWORD}" > /root/${APP_NAME}-Info.txt
|
||||
echo "${APP_NAME} database name is ${DB_NAME} and password is ${DB_PASSWORD}" >> /root/${APP_NAME}-Info.txt
|
||||
echo "${APP_NAME} user is admin password is ${ADMIN_PASSWORD}" >> /root/${APP_NAME}-Info.txt
|
||||
|
||||
Reference in New Issue
Block a user