From 563856dbcd75f4be6d480d357f3061c778830286 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 18 Jun 2025 14:52:31 -0400 Subject: [PATCH] Improving starting.sh and addconfig.sh --- support/addconfig.sh | 5 +++-- support/starting.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 #---------------------------------------------------------------------- -- 2.47.3