Permalink
Browse files

Fix contactgroup on NEMS 1.5

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 5, 2019
1 parent 0fe38ad commit ad50380f8ed1d54dc682802c407d2375d9802932
Showing with 5 additions and 0 deletions.
  1. +5 −0 restore.sh
@@ -191,6 +191,11 @@ else
# Reconcile and clobber all other config files
/root/nems/nems-migrator/data/reconcile-nagios.sh $ver $confsrc $confdest

# NEMS 1.5+ imports the contactgroups, so needs to have correct username
if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
/bin/sed -i -- 's/nemsadmin/'"$username"'/g' $confdest/global/contactgroups.cfg
fi

# Clear MySQL database and import new consolidated configs into NConf
/root/nems/nems-migrator/data/nconf-import.sh $ver $confdest

0 comments on commit ad50380

Please sign in to comment.