mirror of
https://github.com/librenms/docker.git
synced 2026-07-21 09:18:49 +00:00
Cleanup from previous commit
This commit is contained in:
parent
e20faf98db
commit
f9949d1491
1 changed files with 6 additions and 1 deletions
|
|
@ -79,8 +79,8 @@ sed -e "s/@UPLOAD_MAX_SIZE@/$UPLOAD_MAX_SIZE/g" \
|
|||
/tpls/etc/nginx/nginx.conf > /etc/nginx/nginx.conf
|
||||
|
||||
# SNMP
|
||||
echo "Updating SNMP community..."
|
||||
file_env 'LIBRENMS_SNMP_COMMUNITY' 'librenmsdocker'
|
||||
echo "Updating SNMP community to ${LIBRENMS_SNMP_COMMUNITY}..."
|
||||
sed -i -e "s/RANDOMSTRINGGOESHERE/${LIBRENMS_SNMP_COMMUNITY}/" /etc/snmp/snmpd.conf
|
||||
|
||||
# Init files and folders
|
||||
|
|
@ -164,6 +164,11 @@ if [ "$1" == "/usr/local/bin/cron" ]; then
|
|||
echo ">>"
|
||||
|
||||
# Init
|
||||
if [ -z "$CRONTAB_PATH" ]; then
|
||||
>&2 echo "ERROR: CRONTAB_PATH must be defined"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf ${CRONTAB_PATH}
|
||||
mkdir -m 0644 -p ${CRONTAB_PATH}
|
||||
touch ${CRONTAB_PATH}/librenms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue