Compare commits

...

2 Commits

Author SHA1 Message Date
Paul
be35a96052
Updated comment wording
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 11:26:43 +13:00
Paul
15d8382c17
Updated comment wording
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 11:26:36 +13:00

View File

@ -129,7 +129,7 @@ ssh_check() {
fi fi
} }
# 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) # 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
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 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 # 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
if [ -z "$var_os" ]; then if [ -z "$var_os" ]; then
var_os="debian" var_os="debian"
fi fi