From 5879f9306e180332ff9c48b38b26779482ef57f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jari=20Sch=C3=A4fer?= Date: Tue, 31 May 2022 23:15:20 +0200 Subject: [PATCH] remove support for deprecated config.custom.php --- post_install/etc/my_init.d/librenms_104_config | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/post_install/etc/my_init.d/librenms_104_config b/post_install/etc/my_init.d/librenms_104_config index 138cc4f..f12bbf7 100755 --- a/post_install/etc/my_init.d/librenms_104_config +++ b/post_install/etc/my_init.d/librenms_104_config @@ -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 " /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