Update 'installer.sh'
This commit is contained in:
11
installer.sh
11
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 #
|
||||
|
||||
Reference in New Issue
Block a user