mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
adding localhost to condole config and adding versioning
This commit is contained in:
parent
d3612c9ba9
commit
01742670a5
@ -12,6 +12,7 @@ DBNAME=pandora
|
|||||||
DBUSER=pandora
|
DBUSER=pandora
|
||||||
DBPASS=pandora
|
DBPASS=pandora
|
||||||
DBPORT=3306
|
DBPORT=3306
|
||||||
|
S_VERSION='v1.0'
|
||||||
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
||||||
|
|
||||||
# Ansi color code variables
|
# Ansi color code variables
|
||||||
@ -87,6 +88,7 @@ check_root_permissions () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## Main
|
## Main
|
||||||
|
echo 'Starting PandoraFMS Community deployment $S_VERSION'
|
||||||
|
|
||||||
# Centos Version
|
# Centos Version
|
||||||
if [ ! "$(grep -i centos /etc/redhat-release)" ]; then
|
if [ ! "$(grep -i centos /etc/redhat-release)" ]; then
|
||||||
@ -381,7 +383,7 @@ cat > $CONSOLE_PATH/include/config.php << EO_CONFIG_F
|
|||||||
\$config["dbname"]="$DBNAME";
|
\$config["dbname"]="$DBNAME";
|
||||||
\$config["dbuser"]="$DBUSER";
|
\$config["dbuser"]="$DBUSER";
|
||||||
\$config["dbpass"]="$DBPASS";
|
\$config["dbpass"]="$DBPASS";
|
||||||
\$config["dbhost"]="$DBHOST";
|
\$config["dbhost"]="localhost";
|
||||||
\$config["homedir"]="$PANDORA_CONSOLE";
|
\$config["homedir"]="$PANDORA_CONSOLE";
|
||||||
\$config["homeurl"]="/pandora_console";
|
\$config["homeurl"]="/pandora_console";
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user