|
|
@@ -577,20 +577,26 @@ LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php > /dev/null 2>&1
|
|
|
|
|
|
# Installing MariaDB repo
|
|
|
echo "(*) MariaDB"
|
|
|
-if [ -e $apt/mariadb.list ]; then
|
|
|
- rm $apt/mariadb.list
|
|
|
-fi
|
|
|
echo "deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/10.4/$VERSION $codename main" > $apt/mariadb.list
|
|
|
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 > /dev/null 2>&1
|
|
|
|
|
|
# Installing hestia repo
|
|
|
echo "(*) Hestia Control Panel"
|
|
|
-if [ -e $apt/hestia.list ]; then
|
|
|
- rm $apt/hestia.list
|
|
|
-fi
|
|
|
echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
|
|
|
wget --quiet https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
|
|
|
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/deb_signing.key > /dev/null 2>&1
|
|
|
+rm /tmp/deb_signing.key
|
|
|
+
|
|
|
+# Installing postgresql repo
|
|
|
+if [ "$postgresql" = 'yes' ]; then
|
|
|
+ echo "(*) PostgreSQL"
|
|
|
+ echo "deb http://apt.postgresql.org/pub/repos/apt/ $codename-pgdg main" > $apt/postgresql.list
|
|
|
+ wget --quiet https://www.postgresql.org/media/keys/ACCC4CF8.asc -O /tmp/psql_signing.key
|
|
|
+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/psql_signing.key > /dev/null 2>&1
|
|
|
+ rm /tmp/psql_signing.key
|
|
|
+fi
|
|
|
+
|
|
|
+# Echo for a new line
|
|
|
echo
|
|
|
|
|
|
# Updating system
|