From acf10ca9ef515331a6c0695479031767ba30256c Mon Sep 17 00:00:00 2001 From: poka Date: Fri, 22 May 2020 17:06:27 +0200 Subject: [PATCH] [Nestcloud] Fix php version --- .install/nextcloud/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.install/nextcloud/install.sh b/.install/nextcloud/install.sh index c839103..ee5ade7 100755 --- a/.install/nextcloud/install.sh +++ b/.install/nextcloud/install.sh @@ -47,7 +47,6 @@ fi ## Update system packages apt install -y lsb-release apt-transport-https ca-certificates -export PHPVERSION=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}') apt update -y apt install nginx mariadb-server apt-transport-https curl gnupg2 git lsb-release ssl-cert ca-certificates apt-transport-https tree locate software-properties-common dirmngr screen htop net-tools zip unzip curl ffmpeg ghostscript libfile-fcntllock-perl -y @@ -59,6 +58,7 @@ systemctl enable nginx || (echo -e "${c_red}Erreur quelque part ...$c_" && exit echo -e "${c_yellow} === Installing php ... ===$c_" apt install php php-fpm php-xml php-curl php-gd php php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-json php-bz2 php-ldap php-apcu imagemagick php-imagick php-smbclient -y +export PHPVERSION=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}') echo -e "${c_yellow} === Configuring php ... ===$c_" [[ ! -e /etc/php/$PHPVERSION/cli/php.ini.bak ]] && (bash configure_php.sh || (echo -e "${c_red}Erreur quelque part ...$c_" && exit 1)) || echo "PHP déjà configuré, skip" @@ -148,8 +148,8 @@ cp nextcloud.conf /etc/nginx/conf.d/ cp *optimization.conf /etc/nginx/ sed -i "s/NC_DOMAIN/$nc_domain/" /etc/nginx/conf.d/nextcloud.conf sed -i "s/NC_PORT/$nc_port/" /etc/nginx/conf.d/nextcloud.conf -sed -i "s/80 default_server;/81 default_server;/" /etc/nginx/sites-enabled/default sed -i "s/_PHPVERSION/$PHPVERSION/" /etc/nginx/conf.d/nextcloud.conf +sed -i "s/80 default_server;/81 default_server;/" /etc/nginx/sites-enabled/default chmod u+x ../ssl.sh if [[ $isSSL == "false" ]]; then