]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Loading variable within starting.sh
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 13:04:24 +0000 (09:04 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 18 Jun 2025 13:04:24 +0000 (09:04 -0400)
support/starting.sh

index 84c534ada429a4b0650b8befe4c2a7480cf26e9b..9de26beb339601f59bac9c0a04cc70c3d5b58f27 100644 (file)
@@ -46,6 +46,12 @@ if      [ -z "$DB_TYPE" -o "$DB_TYPE" = "DB_TO_BE_DEFINED" ] ; then
 
 #===============================================================
 #main script
+#----------------------------------------------------------------------
+#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
+
 chk_config $1;
 exit 0;
 #---------------------------------------------------------------