Update photoprism-install.sh

This commit is contained in:
tteckster 2022-08-07 17:46:57 -04:00 committed by GitHub
parent d0aee3cece
commit 430bd65f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,17 +127,26 @@ NODE_OPTIONS=--max_old_space_size=2048 make all &>/dev/null
cp -a assets/ /opt/photoprism/assets/ &>/dev/null cp -a assets/ /opt/photoprism/assets/ &>/dev/null
msg_ok "Built PhotoPrism" msg_ok "Built PhotoPrism"
env_path="/var/lib/photoprism/.env" #env_path="/var/lib/photoprism/.env"
echo " #echo "
PHOTOPRISM_AUTH_MODE='password' #PHOTOPRISM_AUTH_MODE='password'
PHOTOPRISM_ADMIN_PASSWORD='changeme' #PHOTOPRISM_ADMIN_PASSWORD='changeme'
PHOTOPRISM_HTTP_HOST='0.0.0.0' #PHOTOPRISM_HTTP_HOST='0.0.0.0'
PHOTOPRISM_HTTP_PORT=2342 #PHOTOPRISM_HTTP_PORT=2342
PHOTOPRISM_STORAGE_PATH='/var/lib/photoprism/storage' #PHOTOPRISM_STORAGE_PATH='/var/lib/photoprism/storage'
PHOTOPRISM_ORIGINALS_PATH='/var/lib/photoprism/photos/Originals' #PHOTOPRISM_ORIGINALS_PATH='/var/lib/photoprism/photos/Originals'
PHOTOPRISM_IMPORT_PATH='/var/lib/photoprism/photos/Import' #PHOTOPRISM_IMPORT_PATH='/var/lib/photoprism/photos/Import'
" > $env_path #" > $env_path
cat <<EOF > /var/lib/photoprism/.env
PHOTOPRISM_AUTH_MODE="password"
PHOTOPRISM_ADMIN_PASSWORD="changeme"
PHOTOPRISM_HTTP_HOST="0.0.0.0"
PHOTOPRISM_HTTP_PORT="2342"
PHOTOPRISM_STORAGE_PATH="/var/lib/photoprism/storage"
PHOTOPRISM_ORIGINALS_PATH="/var/lib/photoprism/photos/Originals"
PHOTOPRISM_IMPORT_PATH="/var/lib/photoprism/photos/Import"
EOF
msg_info "Creating Service" msg_info "Creating Service"
service_path="/etc/systemd/system/photoprism.service" service_path="/etc/systemd/system/photoprism.service"