Skip to content

Commit

Permalink
Merge branch 'ent-9728-definit-php-8-por-defecto-en-las-instalaciones…
Browse files Browse the repository at this point in the history
…-online' into 'develop'

9728 set php8 by default

See merge request artica/pandorafms!5232
  • Loading branch information
rafaelameijeiras committed Oct 31, 2022
2 parents 1288a3c + 8af1d6d commit aae620c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extras/deploy-scripts/pandora_deploy_community.sh
Expand Up @@ -170,7 +170,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-php74" "Configuring PHP"
execute_cmd "yum-config-manager --enable remi-php80" "Configuring PHP"

# Install percona Database
#[ -f /etc/my.cnf ] && rm -rf /etc/my.cnf
Expand Down
2 changes: 1 addition & 1 deletion extras/deploy-scripts/pandora_deploy_community_el8.sh
Expand Up @@ -20,7 +20,7 @@ LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
# define default variables
[ "$TZ" ] || TZ="Europe/Madrid"
[ "$MYVER" ] || MYVER=57
[ "$PHPVER" ] || PHPVER=7
[ "$PHPVER" ] || PHPVER=8
[ "$DBHOST" ] || DBHOST=127.0.0.1
[ "$DBNAME" ] || DBNAME=pandora
[ "$DBUSER" ] || DBUSER=pandora
Expand Down
7 changes: 5 additions & 2 deletions extras/deploy-scripts/pandora_deploy_community_ubuntu_2204.sh
Expand Up @@ -21,7 +21,7 @@ LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"

# define default variables
[ "$TZ" ] || TZ="Europe/Madrid"
[ "$PHPVER" ] || PHPVER=7.4
[ "$PHPVER" ] || PHPVER=8.0
[ "$DBHOST" ] || DBHOST=127.0.0.1
[ "$DBNAME" ] || DBNAME=pandora
[ "$DBUSER" ] || DBUSER=pandora
Expand Down Expand Up @@ -138,6 +138,9 @@ check_root_permissions
# Connectivity
check_repo_connection

#Install awk, sed, grep if not present
execute_cmd "apt install -y gawk sed grep" 'Installing needed tools'

# Systemd
execute_cmd "systemctl --version" "Checking SystemD" 'This is not a SystemD enable system, if tryng to use in a docker env please check: https://github.com/pandorafms/pandorafms/tree/develop/extras/docker/centos8'

Expand All @@ -155,7 +158,7 @@ execute_cmd "timedatectl set-timezone $TZ" "Setting Timezone $TZ"
execute_cmd "awk --version" 'Checking needed tools: awk'
execute_cmd "grep --version" 'Checking needed tools: grep'
execute_cmd "sed --version" 'Checking needed tools: sed'
execute_cmd "apt --version" 'Checking needed tools: dnf'
execute_cmd "apt --version" 'Checking needed tools: apt'

# Creating working directory
rm -rf "$WORKDIR" &>> "$LOGFILE"
Expand Down

0 comments on commit aae620c

Please sign in to comment.