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 #