File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -595,28 +595,18 @@ echo "Adding required repositories to proceed with installation:"
595595echo
596596# Installing nginx repo
597597echo " (*) NGINX"
598- if [ -e $apt /nginx.list ]; then
599- rm $apt /nginx.list
600- fi
601- echo " deb [arch=amd64] http://nginx.org/packages/mainline/$VERSION / $codename nginx" \
602- > $apt /nginx.list
598+ echo " deb [arch=amd64] http://nginx.org/packages/mainline/$VERSION / $codename nginx" > $apt /nginx.list
603599wget --quiet http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
604600APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key > /dev/null 2>&1
605601
606602# Installing sury php repo
607603echo " (*) PHP"
608- if [ -e $apt /php.list ]; then
609- rm $apt /php.list
610- fi
611604echo " deb https://packages.sury.org/php/ $codename main" > $apt /php.list
612605wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
613606APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key > /dev/null 2>&1
614607
615608# Installing MariaDB repo
616609echo " (*) MariaDB"
617- if [ -e $apt /mariadb.list ]; then
618- rm $apt /mariadb.list
619- fi
620610echo " deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/$VERSION $codename main" > $apt /mariadb.list
621611if [ " $release " -eq 8 ]; then
622612 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CBCB082A1BB943DB > /dev/null 2>&1
631621
632622# Installing hestia repo
633623echo " (*) Hestia Control Panel"
634- if [ -e $apt /hestia.list ]; then
635- rm $apt /hestia.list
636- fi
637624echo " deb https://$RHOST / $codename main" > $apt /hestia.list
638625wget --quiet https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
639626APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/deb_signing.key > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments