Skip to content

Commit 65c12fd

Browse files
committed
Remove not needed removes of existing lists.
1 parent 91aa87e commit 65c12fd

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -595,28 +595,18 @@ echo "Adding required repositories to proceed with installation:"
595595
echo
596596
# Installing nginx repo
597597
echo "(*) 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
603599
wget --quiet http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
604600
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key > /dev/null 2>&1
605601

606602
# Installing sury php repo
607603
echo "(*) PHP"
608-
if [ -e $apt/php.list ]; then
609-
rm $apt/php.list
610-
fi
611604
echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
612605
wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
613606
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key > /dev/null 2>&1
614607

615608
# Installing MariaDB repo
616609
echo "(*) MariaDB"
617-
if [ -e $apt/mariadb.list ]; then
618-
rm $apt/mariadb.list
619-
fi
620610
echo "deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/$VERSION $codename main" > $apt/mariadb.list
621611
if [ "$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
@@ -631,9 +621,6 @@ fi
631621

632622
# Installing hestia repo
633623
echo "(*) Hestia Control Panel"
634-
if [ -e $apt/hestia.list ]; then
635-
rm $apt/hestia.list
636-
fi
637624
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
638625
wget --quiet https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
639626
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/deb_signing.key > /dev/null 2>&1

0 commit comments

Comments
 (0)