diff --git a/misc/build.func b/misc/build.func index 2fde17ff..55c935a5 100644 --- a/misc/build.func +++ b/misc/build.func @@ -363,12 +363,14 @@ advanced_settings() { exit-script fi - if (whiptail --defaultno --title "SSH ACCESS" --yesno "Enable Root SSH Access?" 10 58); then - SSH="yes" - else - SSH="no" + if [[ "$PW" == "-password *" ]]; then + if (whiptail --defaultno --title "SSH ACCESS" --yesno "Enable Root SSH Access?" 10 58); then + SSH="yes" + else + SSH="no" + fi + echo -e "${DGN}Enable Root SSH Access: ${BGN}$SSH${CL}" fi - echo -e "${DGN}Enable Root SSH Access: ${BGN}$SSH${CL}" if [[ "$APP" == "Docker" || "$APP" == "Umbrel" || "$APP" == "CasaOS" || "$APP" == "Home Assistant" ]]; then if (whiptail --defaultno --title "FUSE OVERLAYFS" --yesno "(ZFS) Enable Fuse Overlayfs?" 10 58); then