From fc4174930d5a1af747826b795baba9a33fe249ca Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 7 Jul 2018 23:37:55 +0200 Subject: [PATCH] Add user config Fix directories config for cron --- entrypoint.sh | 21 ++++++++++++++------- examples/compose/docker-compose.yml | 14 +++++++------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 70fd7df..a7ea2b2 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -85,6 +85,14 @@ rm -f ${LIBRENMS_PATH}/config.d/* echo "Setting LibreNMS configuration..." +# Config : Directories + cat > ${LIBRENMS_PATH}/config.d/directories.php <&2 echo "ERROR: DB_HOST must be defined" @@ -101,6 +109,12 @@ EOL dbcmd="mysql -h ${DB_HOST} -P ${DB_PORT} -u "${DB_USER}" "-p${DB_PASSWORD}"" unset DB_PASSWORD +# Config : User +cat > ${LIBRENMS_PATH}/config.d/user.php < ${LIBRENMS_PATH}/config.d/fping.php < ${LIBRENMS_PATH}/config.d/directories.php <