Permalink
Browse files

Ensure user is imported to contacts.cfg

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 6, 2019
1 parent faa08e9 commit 88da5b1b30d0ca5b61df51c9bf65fb3b929ead45
Showing with 1 addition and 0 deletions.
  1. +1 −0 restore.sh
@@ -194,6 +194,7 @@ else
# 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
/bin/sed -i -- 's/nemsadmin/'"$username"'/g' $confdest/global/contacts.cfg
fi

# Clear MySQL database and import new consolidated configs into NConf

0 comments on commit 88da5b1

Please sign in to comment.