mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
9728 set php8 by default
This commit is contained in:
parent
0eb3c12cd9
commit
8af1d6dd98
@ -170,7 +170,7 @@ http://rpms.remirepo.net/enterprise/remi-release-7.rpm \
|
|||||||
https://repo.percona.com/yum/percona-release-latest.noarch.rpm"
|
https://repo.percona.com/yum/percona-release-latest.noarch.rpm"
|
||||||
|
|
||||||
execute_cmd "yum install -y $extra_repos" "Installing extra repositories"
|
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
|
# Install percona Database
|
||||||
#[ -f /etc/my.cnf ] && rm -rf /etc/my.cnf
|
#[ -f /etc/my.cnf ] && rm -rf /etc/my.cnf
|
||||||
|
@ -20,7 +20,7 @@ LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
|||||||
# define default variables
|
# define default variables
|
||||||
[ "$TZ" ] || TZ="Europe/Madrid"
|
[ "$TZ" ] || TZ="Europe/Madrid"
|
||||||
[ "$MYVER" ] || MYVER=57
|
[ "$MYVER" ] || MYVER=57
|
||||||
[ "$PHPVER" ] || PHPVER=7
|
[ "$PHPVER" ] || PHPVER=8
|
||||||
[ "$DBHOST" ] || DBHOST=127.0.0.1
|
[ "$DBHOST" ] || DBHOST=127.0.0.1
|
||||||
[ "$DBNAME" ] || DBNAME=pandora
|
[ "$DBNAME" ] || DBNAME=pandora
|
||||||
[ "$DBUSER" ] || DBUSER=pandora
|
[ "$DBUSER" ] || DBUSER=pandora
|
||||||
|
@ -21,7 +21,7 @@ LOGFILE="/tmp/pandora-deploy-community-$(date +%F).log"
|
|||||||
|
|
||||||
# define default variables
|
# define default variables
|
||||||
[ "$TZ" ] || TZ="Europe/Madrid"
|
[ "$TZ" ] || TZ="Europe/Madrid"
|
||||||
[ "$PHPVER" ] || PHPVER=7.4
|
[ "$PHPVER" ] || PHPVER=8.0
|
||||||
[ "$DBHOST" ] || DBHOST=127.0.0.1
|
[ "$DBHOST" ] || DBHOST=127.0.0.1
|
||||||
[ "$DBNAME" ] || DBNAME=pandora
|
[ "$DBNAME" ] || DBNAME=pandora
|
||||||
[ "$DBUSER" ] || DBUSER=pandora
|
[ "$DBUSER" ] || DBUSER=pandora
|
||||||
@ -138,6 +138,9 @@ check_root_permissions
|
|||||||
# Connectivity
|
# Connectivity
|
||||||
check_repo_connection
|
check_repo_connection
|
||||||
|
|
||||||
|
#Install awk, sed, grep if not present
|
||||||
|
execute_cmd "apt install -y gawk sed grep" 'Installing needed tools'
|
||||||
|
|
||||||
# Systemd
|
# 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'
|
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'
|
||||||
|
|
||||||
@ -155,7 +158,7 @@ execute_cmd "timedatectl set-timezone $TZ" "Setting Timezone $TZ"
|
|||||||
execute_cmd "awk --version" 'Checking needed tools: awk'
|
execute_cmd "awk --version" 'Checking needed tools: awk'
|
||||||
execute_cmd "grep --version" 'Checking needed tools: grep'
|
execute_cmd "grep --version" 'Checking needed tools: grep'
|
||||||
execute_cmd "sed --version" 'Checking needed tools: sed'
|
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
|
# Creating working directory
|
||||||
rm -rf "$WORKDIR" &>> "$LOGFILE"
|
rm -rf "$WORKDIR" &>> "$LOGFILE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user