File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,12 @@ if [ ! -e '/usr/lib/apt/methods/https' ]; then
270270 check_result $? " Can't install apt-transport-https"
271271fi
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
274280wget -q " https://$GPG /deb_signing.key" -O /dev/null
275281check_result $? " No access to Hestia repository"
@@ -478,9 +484,7 @@ wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
478484apt-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
486490echo " deb https://$RHOST / $codename main" > $apt /hestia.list
You can’t perform that action at this time.
0 commit comments