Compare commits

..

No commits in common. "be35a96052547e881a831b793087731a5fc41779" and "0e9623b6625193bcc6208e5b3953b65339375830" have entirely different histories.

View File

@ -129,7 +129,7 @@ ssh_check() {
fi fi
} }
# This function sets base settings which are common for all scripts. The settings can be overriden in default_settings or advanced_settings which are defined in each script # This function allows to centralize all common options so that services only need to define settings that need to be overridden (Avoid duplication of information)
base_settings() { base_settings() {
CT_TYPE="1" CT_TYPE="1"
PW="" PW=""
@ -151,7 +151,7 @@ base_settings() {
VLAN="" VLAN=""
SSH="no" SSH="no"
VERB="no" VERB="no"
# Since these 2 are only defined outside of default_settings function, we add a temporary fallback. TODO: To align everything, we should add these as constant variables (e.g. OSTYPE and OSVERSION), but that would currently require updating the default_settings function for all existing scripts # Since these 2 are defined outside of default_settings function, avoid overwriting them. To align everything, they should use another constant variable (say OSTYPE), but that would require updating the default_settings function for all existing scripts
if [ -z "$var_os" ]; then if [ -z "$var_os" ]; then
var_os="debian" var_os="debian"
fi fi