Added flag to add-apt-repository -n

This flag disables updating the package cache after adding a ppa.
Running apt-update afterwards is now mandatory!
This commit is contained in:
b.waal
2020-03-18 11:17:34 +01:00
parent 519b2c760f
commit 4f2700aad9

View File

@@ -53,7 +53,6 @@ domainwww=0
fi
##---------------##
# Functions #
##---------------##
@@ -404,9 +403,9 @@ msg " Preconfiguring"
sed -i '/Port 22/c\Port 4242' /etc/ssh/sshd_config
$PKGI software-properties-common gnupg > $OUTPUT 2>&1
$PKGA universe -y > $OUTPUT 2>&1
$PKGA ppa:ondrej/php -y > $OUTPUT 2>&1
$PKGA ppa:certbot/certbot -y > $OUTPUT 2>&1
$PKGA ppa:chris-lea/redis-server -y > $OUTPUT 2>&1
$PKGA ppa:ondrej/php -y -n > $OUTPUT 2>&1
$PKGA ppa:certbot/certbot -y -n > $OUTPUT 2>&1
$PKGA ppa:chris-lea/redis-server -y -n > $OUTPUT 2>&1
$PKGM update
$PKGM upgrade -y