Skip to content

Commit 4369771

Browse files
Various fixes (#4924)
1 parent 623c8d9 commit 4369771

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

misc/build.func

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ HN="${HN}"
385385
BRG="${BRG}"
386386
APT_CACHER_IP="${APT_CACHER_IP:-none}"
387387
DISABLEIP6="${DISABLEIP6}"
388-
PW="${PW:-none}"
388+
PW='${PW:-none}'
389389
SSH="${SSH}"
390390
SSH_AUTHORIZED_KEY="${SSH_AUTHORIZED_KEY}"
391391
VERBOSE="${VERBOSE}"
@@ -397,6 +397,7 @@ SD="${SD:-none}"
397397
MAC="${MAC:-none}"
398398
NS="${NS:-none}"
399399
NET="${NET}"
400+
FUSE="${ENABLE_FUSE}"
400401

401402
EOF
402403
echo -e "${INFO}${BOLD}${GN}Writing configuration to ${FILEPATH}${CL}"
@@ -416,7 +417,7 @@ HN="${HN}"
416417
BRG="${BRG}"
417418
APT_CACHER_IP="${APT_CACHER_IP:-none}"
418419
DISABLEIP6="${DISABLEIP6}"
419-
PW="${PW:-none}"
420+
PW='${PW:-none}'
420421
SSH="${SSH}"
421422
SSH_AUTHORIZED_KEY="${SSH_AUTHORIZED_KEY}"
422423
VERBOSE="${VERBOSE}"
@@ -428,6 +429,7 @@ SD="${SD:-none}"
428429
MAC="${MAC:-none}"
429430
NS="${NS:-none}"
430431
NET="${NET}"
432+
FUSE="${ENABLE_FUSE}"
431433

432434
EOF
433435
echo -e "${INFO}${BOLD}${GN}Writing configuration to ${FILEPATH}${CL}"
@@ -795,7 +797,7 @@ advanced_settings() {
795797
echo -e "${ROOTSSH}${BOLD}${DGN}Root SSH Access: ${BGN}$SSH${CL}"
796798
fi
797799

798-
if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "FUSE Support" --yesno "Enable FUSE support?\nRequired for tools like rclone, mergerfs, AppImage, etc." 10 58); then
800+
if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "FUSE Support" --yesno "Enable FUSE support?\nRequired for tools like rclone, mergerfs, AppImage, etc." 10 58); then
799801
ENABLE_FUSE="yes"
800802
else
801803
ENABLE_FUSE="no"

misc/config-file.func

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,24 @@ config_file() {
618618
fi
619619
fi
620620

621+
if [[ -n "$ENABLE_FUSE" ]]; then
622+
if [[ "$ENABLE_FUSE" == "yes" ]]; then
623+
echo -e "${FUSE}${BOLD}${DGN}Enable FUSE: ${BGN}Yes${CL}"
624+
elif [[ "$ENABLE_FUSE" == "no" ]]; then
625+
echo -e "${FUSE}${BOLD}${DGN}Enable FUSE: ${BGN}No${CL}"
626+
else
627+
msg_error "Enable FUSE needs to be 'yes' or 'no', was ${ENABLE_FUSE}"
628+
exit
629+
fi
630+
else
631+
if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "FUSE" --yesno "Enable FUSE?" 10 58); then
632+
ENABLE_FUSE="yes"
633+
else
634+
ENABLE_FUSE="no"
635+
fi
636+
echo -e "${FUSE}${BOLD}${DGN}Enable FUSE: ${BGN}$ENABLE_FUSE${CL}"
637+
fi
638+
621639
if [[ -n "${VERBOSE-}" ]]; then
622640
if [[ "$VERBOSE" == "yes" ]]; then
623641
echo -e "${SEARCH}${BOLD}${DGN}Verbose Mode: ${BGN}$VERBOSE${CL}"

0 commit comments

Comments
 (0)