naming convention
This commit is contained in:
parent
a1e3b036b6
commit
8e50696aaf
@ -350,9 +350,9 @@ base_settings() {
|
|||||||
SSH="no"
|
SSH="no"
|
||||||
SSH_AUTHORIZED_KEY=""
|
SSH_AUTHORIZED_KEY=""
|
||||||
TAGS="community-script-dev;"
|
TAGS="community-script-dev;"
|
||||||
NFS="no"
|
ENABLE_NFS="no"
|
||||||
CIFS="no"
|
ENABLE_CIFS="no"
|
||||||
FUSE="no"
|
ENABLE_FUSE="no"
|
||||||
|
|
||||||
# Override default settings with variables from ct script
|
# Override default settings with variables from ct script
|
||||||
CT_TYPE=${var_unprivileged:-$CT_TYPE}
|
CT_TYPE=${var_unprivileged:-$CT_TYPE}
|
||||||
@ -361,9 +361,9 @@ base_settings() {
|
|||||||
RAM_SIZE=${var_ram:-$RAM_SIZE}
|
RAM_SIZE=${var_ram:-$RAM_SIZE}
|
||||||
VERB=${var_verbose:-$VERBOSE}
|
VERB=${var_verbose:-$VERBOSE}
|
||||||
TAGS="${TAGS}${var_tags:-}"
|
TAGS="${TAGS}${var_tags:-}"
|
||||||
NFS=${var_nfs:-$NFS}
|
ENABLE_NFS=${var_nfs:-$ENABLE_NFS}
|
||||||
CIFS=${var_cifs:-$CIFS}
|
ENABLE_CIFS=${var_cifs:-$ENABLE_CIFS}
|
||||||
FUSE=${var_fuse:-$FUSE}
|
ENABLE_FUSE=${var_fuse:-$ENABLE_FUSE}
|
||||||
|
|
||||||
# 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 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
|
||||||
@ -822,27 +822,27 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
# NFS Feature Selection
|
# NFS Feature Selection
|
||||||
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "NFS Support" --yesno "Enable NFS support in the container?" 10 58); then
|
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "NFS Support" --yesno "Enable NFS support in the container?" 10 58); then
|
||||||
NFS="yes"
|
ENABLE_NFS="yes"
|
||||||
else
|
else
|
||||||
NFS="no"
|
ENABLE_NFS="no"
|
||||||
fi
|
fi
|
||||||
echo -e "${NFS}${BOLD}${DGN}NFS Support: ${BGN}$NFS${CL}"
|
echo -e "${NFS}${BOLD}${DGN}NFS Support: ${BGN}$ENABLE_NFS${CL}"
|
||||||
|
|
||||||
# CIFS Feature Selection
|
# CIFS Feature Selection
|
||||||
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "CIFS Support" --yesno "Enable CIFS (Samba) support in the container?" 10 58); then
|
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "CIFS Support" --yesno "Enable CIFS (Samba) support in the container?" 10 58); then
|
||||||
CIFS="yes"
|
ENABLE_CIFS="yes"
|
||||||
else
|
else
|
||||||
CIFS="no"
|
ENABLE_CIFS="no"
|
||||||
fi
|
fi
|
||||||
echo -e "${CIFS}${BOLD}${DGN}CIFS (Samba) Support: ${BGN}$CIFS${CL}"
|
echo -e "${CIFS}${BOLD}${DGN}CIFS (Samba) Support: ${BGN}$ENABLE_CIFS${CL}"
|
||||||
|
|
||||||
# FUSE Feature Selection
|
# FUSE Feature Selection
|
||||||
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "FUSE Support" --yesno "Enable FUSE (Filesystem in Userspace) support in the container?" 10 58); then
|
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "FUSE Support" --yesno "Enable FUSE (Filesystem in Userspace) support in the container?" 10 58); then
|
||||||
FUSE="yes"
|
ENABLE_FUSE="yes"
|
||||||
else
|
else
|
||||||
FUSE="no"
|
ENABLE_FUSE="no"
|
||||||
fi
|
fi
|
||||||
echo -e "${FUSE}${BOLD}${DGN}FUSE (Filesystem in Userspace) Support: ${BGN}$FUSE${CL}"
|
echo -e "${FUSE}${BOLD}${DGN}FUSE (Filesystem in Userspace) Support: ${BGN}$ENABLE_FUSE${CL}"
|
||||||
|
|
||||||
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then
|
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then
|
||||||
VERB="yes"
|
VERB="yes"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user