Skip to content

Commit 7347771

Browse files
committed
Custom PHP repo only if Multi-PHP is selected.
1 parent 892b058 commit 7347771

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

install/hst-install-debian.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,12 @@ echo "deb http://nginx.org/packages/debian/ $codename nginx" > $apt/nginx.list
484484
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
485485
apt-key add /tmp/nginx_signing.key
486486

487-
# Installing sury php repo
488-
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
489-
wget https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
490-
apt-key add /tmp/php_signing.key
487+
if [ "$multiphp" = 'yes' ] || [ "$phpfpm" = 'yes' ]; then
488+
# Installing sury php repo
489+
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
490+
wget https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
491+
apt-key add /tmp/php_signing.key
492+
fi
491493

492494
# Installing hestia repo
493495
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,10 @@ echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" \
469469
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
470470
apt-key add /tmp/nginx_signing.key
471471

472-
# Installing sury php repo
473-
add-apt-repository -y ppa:ondrej/php > /dev/null 2>&1
472+
if [ "$multiphp" = 'yes' ] || [ "$phpfpm" = 'yes' ]; then
473+
# Installing sury php repo
474+
add-apt-repository -y ppa:ondrej/php > /dev/null 2>&1
475+
fi
474476

475477
# Installing hestia repo
476478
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list

0 commit comments

Comments
 (0)