From fbd50a5f5eba1b54db4545ca497233fa54f7bbd0 Mon Sep 17 00:00:00 2001 From: NEMS Linux Date: Sat, 9 Feb 2019 10:04:23 -0500 Subject: [PATCH] Move default DB restore to 1.5 format --- nems-cleanup.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nems-cleanup.sh b/nems-cleanup.sh index e885b73..7c23e12 100755 --- a/nems-cleanup.sh +++ b/nems-cleanup.sh @@ -181,13 +181,7 @@ nameserver 2001:4860:4860::8844 echo "\$USER1$=/usr/local/nagios/libexec" >> /usr/local/nagios/etc/resource.cfg # Import default Nagios configs - rm -rf /etc/nems/conf - mkdir /etc/nems/conf - cp -R /root/nems/nems-migrator/data/1.5/nagios/conf/default/* /etc/nems/conf/ - if [[ ! -d /etc/nems/conf/okconfig ]]; then - mkdir /etc/nems/conf/okconfig - fi - chown -R www-data:www-data /etc/nems/conf/ + /root/nems/nems-admin/nems-restore-sample-db.sh # Replace the database with Sample database systemctl stop mysql