Migrating Pre-Requirements to generic

This commit is contained in:
Bram Prieshof
2020-03-18 13:26:28 +01:00
parent 4f2700aad9
commit ecd9ae622c

View File

@@ -395,25 +395,12 @@ if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$re
fi fi
##--------------------##
# Pre-Requirements #
##--------------------##
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 -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
##-------------------## ##-------------------##
# Pre-configuring # # Pre-configuring #
##-------------------## ##-------------------##
msg " Preconfiguring"
echo "Running preconf for generic" echo "Running preconf for generic"
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/CoreModules/generic/preconf.sh) source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/CoreModules/generic/preconf.sh)