-! /usr/bin/bash
+#! /usr/bin/bash
#-----------------------------------------------------------------
#Shell script to add local information to configuration file
#-----------------------------------------------------------------
LOCDOM=`dnsdomainname`
sed -i \
- -e "s/DFLTDOM=.*$/DFLTDOMAIN=$LOCDOM/" \
+ -e "s/^DFLTDOM.*$/DFLTDOMAIN=$LOCDOM/" \
/etc/$APPNAME/$APPNAME.conf
+
#===============================================================
OS=$1 #set the OS Type
#Hard coded variables
-APPNAME=mailleur
+export APPNAME=mailleur
#===============================================================
#reporting a big trouble
#----------------------------------------------------------------------