mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +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);
|
||||||
@ -574,4 +576,4 @@ NONE='\033[0m'
|
|||||||
|
|
||||||
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
[ "$(curl -s ifconfig.me)" ] && ipplublic=$(curl -s ifconfig.me)
|
||||||
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
printf " -> Go to Public ${green}http://"$ipplublic"/pandora_console${reset} to manage this server"
|
||||||
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use this credentials to login in the console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
ip addr | grep -w "inet" | grep -v "127.0.0.1" | grep -v -e "172.1[0-9].0.1" | awk '{print $2}' | awk -v g=$GREEN -v n=$NONE -F '/' '{printf "\n -> Go to Local "g"http://"$1"/pandora_console"n" to manage this server \n -> Use this credentials to login in the console "g"[ User: admin / Password: pandora ]"n" \n"}'
|
Loading…
x
Reference in New Issue
Block a user