Update build.func
This commit is contained in:
parent
9ec17d45c7
commit
8aae51a4c7
@ -361,8 +361,6 @@ 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:-}"
|
||||||
ENABLE_NFS=${var_nfs:-$ENABLE_NFS}
|
|
||||||
ENABLE_CIFS=${var_cifs:-$ENABLE_CIFS}
|
|
||||||
ENABLE_FUSE=${var_fuse:-$ENABLE_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
|
||||||
@ -820,23 +818,7 @@ advanced_settings() {
|
|||||||
else
|
else
|
||||||
SSH_AUTHORIZED_KEY=""
|
SSH_AUTHORIZED_KEY=""
|
||||||
fi
|
fi
|
||||||
# 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
|
|
||||||
ENABLE_NFS="yes"
|
|
||||||
else
|
|
||||||
ENABLE_NFS="no"
|
|
||||||
fi
|
|
||||||
echo -e "${NFS}${BOLD}${DGN}NFS Support: ${BGN}$ENABLE_NFS${CL}"
|
|
||||||
|
|
||||||
# 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
|
|
||||||
ENABLE_CIFS="yes"
|
|
||||||
else
|
|
||||||
ENABLE_CIFS="no"
|
|
||||||
fi
|
|
||||||
echo -e "${CIFS}${BOLD}${DGN}CIFS (Samba) Support: ${BGN}$ENABLE_CIFS${CL}"
|
|
||||||
|
|
||||||
# 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
|
||||||
ENABLE_FUSE="yes"
|
ENABLE_FUSE="yes"
|
||||||
else
|
else
|
||||||
@ -1110,14 +1092,6 @@ build_container() {
|
|||||||
FEATURES="nesting=1"
|
FEATURES="nesting=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ENABLE_NFS" == "yes" ]; then
|
|
||||||
FEATURES+=",nfs=1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$ENABLE_CIFS" == "yes" ]; then
|
|
||||||
FEATURES+=",cifs=1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$ENABLE_FUSE" == "yes" ]; then
|
if [ "$ENABLE_FUSE" == "yes" ]; then
|
||||||
FEATURES+=",fuse=1"
|
FEATURES+=",fuse=1"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user