mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 12:24:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -56,12 +56,6 @@ export PHOTOPRISM_ORIGINALS_PATH=$(bashio::config 'ORIGINALS_PATH')
|
|||||||
export PHOTOPRISM_IMPORT_PATH=$(bashio::config 'IMPORT_PATH')
|
export PHOTOPRISM_IMPORT_PATH=$(bashio::config 'IMPORT_PATH')
|
||||||
export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH')
|
export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH')
|
||||||
|
|
||||||
if bashio::config.has_value 'CUSTOM_OPTIONS'; then
|
|
||||||
CUSTOMOPTIONS=$(bashio::config 'CUSTOM_OPTIONS')
|
|
||||||
else
|
|
||||||
CUSTOMOPTIONS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test configs
|
# Test configs
|
||||||
for variabletest in $PHOTOPRISM_STORAGE_PATH $PHOTOPRISM_ORIGINALS_PATH $PHOTOPRISM_IMPORT_PATH $PHOTOPRISM_BACKUP_PATH; do
|
for variabletest in $PHOTOPRISM_STORAGE_PATH $PHOTOPRISM_ORIGINALS_PATH $PHOTOPRISM_IMPORT_PATH $PHOTOPRISM_BACKUP_PATH; do
|
||||||
# Check if path exists
|
# Check if path exists
|
||||||
@@ -80,4 +74,4 @@ bashio::log.info "Please wait 1 or 2 minutes to allow the server to load"
|
|||||||
bashio::log.info 'Default username : admin, default password: "please_change_password"'
|
bashio::log.info 'Default username : admin, default password: "please_change_password"'
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
./entrypoint_photoprism.sh photoprism start '"'$CUSTOMOPTIONS'"'
|
./entrypoint_photoprism.sh photoprism start
|
||||||
|
|||||||
Reference in New Issue
Block a user