]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving starting.sh and addconfig.sh
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 18:52:31 +0000 (14:52 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 18:52:31 +0000 (14:52 -0400)
support/addconfig.sh
support/starting.sh

index 6679ed0a490f4efe8c3e2aaf91b3f6c117d922e3..dff1d108777f91a273c1d0d71f8753ed57a7514d 100755 (executable)
@@ -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
+
index 83004e7b285764ed075dca1bc71c79aa2b39566c..d125ad04067a4c2ec001423d1b37ff352dd5f044 100755 (executable)
@@ -5,7 +5,7 @@
 #===============================================================
 OS=$1           #set the OS Type
 #Hard coded variables
-APPNAME=mailleur
+export APPNAME=mailleur
 #===============================================================
 #reporting a big trouble
 #----------------------------------------------------------------------