Skip to content

Commit

Permalink
Move default DB restore to 1.5 format
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 9, 2019
1 parent 04e03fd commit fbd50a5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nems-cleanup.sh
Expand Up @@ -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
Expand Down

0 comments on commit fbd50a5

Please sign in to comment.