From dccb65caa55f5d269d76c1bfc9758f6da7c1bbf4 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Sun, 15 Sep 2019 18:36:30 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/installer.sh b/installer.sh index 7410305..077670d 100644 --- a/installer.sh +++ b/installer.sh @@ -1,12 +1,19 @@ ##--------------## # 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 # ##-------------## -apt install unattended-upgrades -y +$PKGI unattended-upgrades ##----------------## # OS Detection #