]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving addconfig.sh
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 11:29:36 +0000 (07:29 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 11:29:36 +0000 (07:29 -0400)
support/addconfig.sh

index 131ef49077e9c7f5bfb5cf20dc127e939a18e768..933566751f8989549935d0ed8d47adc56736df6f 100755 (executable)
@@ -2,6 +2,12 @@
 #-----------------------------------------------------------------
 #Shell script to add local information to configuration file
 #-----------------------------------------------------------------
+export APPNAME=mailleur
+#loading all applications variables
+[ -f /etc/$APPNAME/$APPNAME.conf ] && . /etc/$APPNAME/$APPNAME.conf
+#overiding some variable by local setting
+[ -f /etc/sysconfig/$APPNAME ] && . /etc/sysconfig/$APPNAME
+#-----------------------------------------------------------------
 #loading the variable value
 LOCDOM=`dnsdomainname`