This commit is contained in:
@@ -43,16 +43,17 @@ if [ -z "$(ls -A /data)" ]; then
|
|||||||
echo '}' >> $ICINGA2_FILE_API_USER_CONF
|
echo '}' >> $ICINGA2_FILE_API_USER_CONF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
|
## only on inital setup replace one time the api root user password if a env var is set
|
||||||
## only on inital setup replace one time the api root user password if a env var is set
|
if [ ! -z "$ICINGA2_API_USER_ROOT_PASS" ]; then
|
||||||
if [ ! -z "$ICINGA2_API_USER_ROOT_PASS" ]; then
|
|
||||||
echo set inital api root user password
|
echo set inital api root user password
|
||||||
sed -i "s|password = \".*\"|password = \"$ICINGA2_API_USER_ROOT_PASS\"|g" $ICINGA2_FILE_API_USER_CONF
|
sed -i "s|password = \".*\"|password = \"$ICINGA2_API_USER_ROOT_PASS\"|g" $ICINGA2_FILE_API_USER_CONF
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## enable icingadb feature if not active
|
## enable icingadb feature if not active
|
||||||
if [ ! -f "$ICINGA2_FILE_ICINGADB_CONF" ]; then
|
if [ ! -f "$ICINGA2_FILE_ICINGADB_CONF" ]; then
|
||||||
echo enable icingadb
|
echo enable icingadb
|
||||||
|
|||||||
Reference in New Issue
Block a user