File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -484,10 +484,12 @@ echo "deb http://nginx.org/packages/debian/ $codename nginx" > $apt/nginx.list
484484wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
485485apt-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
493495echo " deb https://$RHOST / $codename main" > $apt /hestia.list
Original file line number Diff line number Diff line change @@ -469,8 +469,10 @@ echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" \
469469wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
470470apt-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
476478echo " deb https://$RHOST / $codename main" > $apt /hestia.list
You can’t perform that action at this time.
0 commit comments