Skip to content

Commit 71c133a

Browse files
committed
Change installation way of ondrej php repository.
1 parent 823a615 commit 71c133a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ if [ ! -e '/usr/lib/apt/methods/https' ]; then
270270
check_result $? "Can't install apt-transport-https"
271271
fi
272272

273+
# Check if apt-add-repository is installed
274+
if [ ! -e '/usr/bin/apt-add-repository' ]; then
275+
apt-get -y install python-software-properties
276+
check_result $? "Can't install python-software-properties"
277+
fi
278+
273279
# Checking repository availability
274280
wget -q "https://$GPG/deb_signing.key" -O /dev/null
275281
check_result $? "No access to Hestia repository"
@@ -478,9 +484,7 @@ wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
478484
apt-key add /tmp/nginx_signing.key
479485

480486
# Installing sury php repo
481-
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
482-
wget https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
483-
apt-key add /tmp/php_signing.key
487+
add-apt-repository -y ppa:ondrej/php > /dev/null 2>&1
484488

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

0 commit comments

Comments
 (0)