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