Difference between revisions of "SQWareProduction:generic:etc:sqwgen DbRefVar.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
Line 1: Line 1:
 
Configuration file $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg:<br>
 
Configuration file $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg:<br>
 
{{SQWareProduction_sqwgen_DbRefVar.cfg_presentation}}
 
{{SQWareProduction_sqwgen_DbRefVar.cfg_presentation}}
<br>
+
{{SQWareProduction_sqwgen_DbRefVar.cfg_content}}
<br>
+
{{SQWareProduction_sqwgen_DbRefVar.cfg_explanation}}
File content:
 
<pre>
 
export gvsqw_DbRefPort='3306'
 
export gvsqw_DbRefHost='SQWareRepositoryHost'
 
export gvsqw_DbRefDatabase='dbsqware_db'
 
export gvsqw_DbRefUser='dbsqware_user'
 
export gvsqw_DbRefPass='OctopusDBA_dbSQWare123'
 
# export gvsqw_BounceServerUserConn='mysql_user@BounceServer'
 
</pre>
 
<br>
 
<br>
 
Variables explanation:
 
<pre>
 
# gvsqw_BounceServerUserConn =>
 
gvsqw_DbRefDatabase =>
 
gvsqw_DbRefHost =>
 
gvsqw_DbRefPass =>
 
gvsqw_DbRefPort =>
 
gvsqw_DbRefUser =>
 
</pre>
 
 
{{SQWareProductionSurchargeVar|generic|Gen|sqwgen_DbRefVar.cfg}}
 
{{SQWareProductionSurchargeVar|generic|Gen|sqwgen_DbRefVar.cfg}}
 
<br>
 
<br>

Revision as of 17:52, 21 July 2024

Configuration file $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg:
Global var for SQWareRepository connexion
It contains the operating variables of SQWareProduction.

File content:

#!/bin/ksh
###################################################################
# SQWareProduction for Mysql module of dbSQWare is developped with GPL License 3.0 :
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# dbSQWare is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
# 
# For information : contact@dbsqware.com or www.dbsqware.com
###################################################################
## @Synopsis	Global var for SQWareRepository connexion
## @Copyright	Copyright 2010-2014, OctopusDBA (www.octopusdba.com)
## @License	GPL v3

if [ "$gvsqw_Debug" != "" ]
then
	echo "sourcing cfg file : .../SQWareProduction/generic/etc/sqwgen_DbRefVar.cfg"
fi
export gvsqw_DbRefPort='3306'
export gvsqw_DbRefHost='SQWareRepositoryHost'
export gvsqw_DbRefDatabase='dbsqware_db'
export gvsqw_DbRefUser='dbsqware_user'
export gvsqw_DbRefPass='OctopusDBA_dbSQWare123'

# ssh connection to bounce server for indicators (for MySQL inserts)
# export gvsqw_BounceServerUserConn='mysql_user@BounceServer'

###################################################################################################
###################################################################################################

# Source custom
eval lvsqw_Tmp="\$gvsqw_${gvsqw_RdbmsTrigram}Bin"
if [ -r $gvsqw_GenPath/../../generic/etc_cust/sqwgen_DbRefVar.cfg ]
then
		if [ "$gvsqw_Debug" != "" ]
		then
			echo "sourcing cfg file : $gvsqw_GenPath/../../generic/etc_cust/sqwgen_DbRefVar.cfg"
		fi
	. $gvsqw_GenPath/../../generic/etc_cust/sqwgen_DbRefVar.cfg
elif  [ -r $lvsqw_Tmp/../../generic/etc_cust/sqwgen_DbRefVar.cfg ]
then
		if [ "$gvsqw_Debug" != "" ]
		then
			echo "sourcing cfg file : $lvsqw_Tmp/../../generic/etc_cust/sqwgen_DbRefVar.cfg"
		fi
	. $lvsqw_Tmp/../../generic/etc_cust/sqwgen_DbRefVar.cfg
fi

# For not normed environnement
if [ -r $HOME/sqwConfig/sqwgen_DbRefVar.cfg ]
then
		if [ "$gvsqw_Debug" != "" ]
		then
			echo "sourcing cfg file : $HOME/sqwConfig/sqwgen_DbRefVar.cfg"
		fi
		. $HOME/sqwConfig/sqwgen_DbRefVar.cfg
fi


Variables explanation:


Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_GenBin/../etc/sqwgen_DbRefVar.cfg

by the same variables in $gvsqw_GenBin/../etc_cust/sqwgen_DbRefVar.cfg for all your environnement
or in $HOME/sqwConfig/sqwgen_DbRefVar.cfg specifically for this user.