From: Jean-Marc Pigeon (Delson) Date: Wed, 18 Jun 2025 18:52:31 +0000 (-0400) Subject: Improving starting.sh and addconfig.sh X-Git-Tag: tag-0.9~98 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=563856dbcd75f4be6d480d357f3061c778830286;p=jmp%2Fmailleur Improving starting.sh and addconfig.sh --- diff --git a/support/addconfig.sh b/support/addconfig.sh index 6679ed0..dff1d10 100755 --- a/support/addconfig.sh +++ b/support/addconfig.sh @@ -1,4 +1,4 @@ -! /usr/bin/bash +#! /usr/bin/bash #----------------------------------------------------------------- #Shell script to add local information to configuration file #----------------------------------------------------------------- @@ -6,5 +6,6 @@ LOCDOM=`dnsdomainname` sed -i \ - -e "s/DFLTDOM=.*$/DFLTDOMAIN=$LOCDOM/" \ + -e "s/^DFLTDOM.*$/DFLTDOMAIN=$LOCDOM/" \ /etc/$APPNAME/$APPNAME.conf + diff --git a/support/starting.sh b/support/starting.sh index 83004e7..d125ad0 100755 --- a/support/starting.sh +++ b/support/starting.sh @@ -5,7 +5,7 @@ #=============================================================== OS=$1 #set the OS Type #Hard coded variables -APPNAME=mailleur +export APPNAME=mailleur #=============================================================== #reporting a big trouble #----------------------------------------------------------------------