adding variable dbhost to config.php file

This commit is contained in:
rafael 2022-01-17 13:14:20 +01:00
parent 324cbfac94
commit 3c46271816
2 changed files with 4 additions and 3 deletions

View File

@ -148,7 +148,7 @@ http://rpms.remirepo.net/enterprise/remi-release-7.rpm \
https://repo.percona.com/yum/percona-release-latest.noarch.rpm"
execute_cmd "yum install -y $extra_repos" "Installing extra repositories"
execute_cmd "yum-config-manager --enable remi-php73" "Configuring PHP"
execute_cmd "yum-config-manager --enable remi-php74" "Configuring PHP"
# Install percona Database
[ -f /etc/my.cnf ] && rm -rf /etc/my.cnf

View File

@ -6,7 +6,7 @@
# Centos 8.4, 8.5
# Rocky 8.4, 8.5
# Almalinuz 8.4, 8.5
# RedHat N/A
# RedHat 8.5
#Constants
PANDORA_CONSOLE=/var/www/html/pandora_console
@ -281,6 +281,7 @@ console_dependencies=" \
xorg-x11-fonts-misc \
poppler-data \
php-yaml \
mod_ssl \
http://firefly.artica.es/centos8/perl-Net-Telnet-3.04-1.el8.noarch.rpm \
http://firefly.artica.es/centos7/wmic-1.4-1.el7.x86_64.rpm \
http://firefly.artica.es/centos8/phantomjs-2.1.1-1.el7.x86_64.rpm"
@ -448,7 +449,7 @@ cat > $PANDORA_CONSOLE/include/config.php << EO_CONFIG_F
\$config["dbname"]="$DBNAME";
\$config["dbuser"]="$DBUSER";
\$config["dbpass"]="$DBPASS";
\$config["dbhost"]="localhost";
\$config["dbhost"]="$DBHOST";
\$config["homedir"]="$PANDORA_CONSOLE";
\$config["homeurl"]="/pandora_console";
error_reporting(0);