Update 'installer.sh'

This commit is contained in:
bprieshof
2019-09-15 18:36:30 +02:00
parent 30f004478c
commit dccb65caa5

View File

@@ -1,12 +1,19 @@
##--------------## ##--------------##
# Pre-Config # # Pre-Config #
##--------------## ##--------------##
apt update ## Checking for preconfigured APT command
if [ -z "$PKGI" ] || [ -z "$PKGM" ]
then
PKGM="apt"
PKGI="${PKGM} install -y"
fi
$PKGM update
##-------------## ##-------------##
# Installer # # Installer #
##-------------## ##-------------##
apt install unattended-upgrades -y $PKGI unattended-upgrades
##----------------## ##----------------##
# OS Detection # # OS Detection #