Update photoprism-install.sh
This commit is contained in:
parent
d0aee3cece
commit
430bd65f33
1 changed files with 19 additions and 10 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue