Skip to content

Commit

Permalink
remove support for deprecated config.custom.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jarischaefer committed May 31, 2022
1 parent b268b18 commit 5879f93
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions post_install/etc/my_init.d/librenms_104_config
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,7 @@ fi
requireConfig DB_NAME
requireConfig BASE_URL

# Deprecated legacy config support
# TODO remove legacy config

if [ -f /opt/librenms/config.custom.php ]; then
echo -e "\033[1;33mWARNING: Detected deprecated config.custom.php file, please check the docs\033[0m" >&2

echo "<?php" > /opt/librenms/conf.internal.d/config.custom.php
cat /opt/librenms/config.custom.php >> /opt/librenms/conf.internal.d/config.custom.php
chown librenms:librenms /opt/librenms/conf.internal.d/config.custom.php
fi


# Generate Laravel .env file from legacy config
# Generate Laravel .env file
APP_ENV=local /sbin/setuser librenms composer run-script post-install-cmd -d /opt/librenms

# Not deleting the directory causes validation errors in LibreNMS
Expand Down

0 comments on commit 5879f93

Please sign in to comment.