Edit startup.sh to handle credentials update

pull/57/head
Dirk Mennecke 2024-05-24 15:08:01 +02:00
parent 5857fa382b
commit 96e081901b
1 changed files with 4 additions and 0 deletions

View File

@ -142,4 +142,8 @@ if [ ! "${ENABLE_DEFAULT_SHUTDOWN}" = "true" ]; then
REPLACEMENT=
fi
if [ -n "$GEOSERVER_ADMIN_PASSWORD" ] && [ -n "$GEOSERVER_ADMIN_USER" ]; then
/bin/sh /opt/update_credentials.sh
fi
exec $CATALINA_HOME/bin/catalina.sh run -Dorg.apache.catalina.connector.RECYCLE_FACADES=true