add option to disable os/arch checks and call package install functions with respective pkg formats instead of distro names

This commit is contained in:
ronivay
2021-05-03 14:54:07 +03:00
parent a872b79483
commit 3757cad406
2 changed files with 45 additions and 16 deletions

View File

@@ -32,6 +32,12 @@ PLUGINS="all"
# Note that if nodejs is updated when script's update feature is used, it might not be possible to use rollback option anymore without manually downgrading nodejs version to previous one
AUTOUPDATE="true"
# enable/disable OS check. Installation refuses to run on any other than supported OS versions if this is enabled. Can be disabled for experimental purposes.
OS_CHECK="true"
# enable/disable architecture check. Installation refuses to run on any other than x86_64 if enabled. Can be disabled for experimental purposes.
ARCH_CHECK="true"
# Define the number of previous installations you want to keep. Needs to be at least 1
PRESERVE="3"