forked from axiom-team/astroport
[Nestcloud] Fix php version
This commit is contained in:
parent
9aa00d692b
commit
acf10ca9ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue