From 740dd2d4c4e0e2e2a2d0684a8c206fe0138b0f3d Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:15:11 -0600 Subject: [PATCH] Update installSamba.sh: Improve SAMBA prompts --- scripts/utilities/installSamba.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/utilities/installSamba.sh b/scripts/utilities/installSamba.sh index 0351cab28..ce8f82feb 100755 --- a/scripts/utilities/installSamba.sh +++ b/scripts/utilities/installSamba.sh @@ -57,15 +57,10 @@ CONFIG_FILE="/etc/samba/smb.conf" if [[ -f ${CONFIG_FILE} ]] && grep --silent "\[${SHARE_NAME}]" "${CONFIG_FILE}" ; then echo -e "\n${YELLOW}" echo "*************" - echo "You Pi is already configured to share files with other network devices" + echo "Your Pi is already configured to share files with other network devices" echo "using the '${SHARE_NAME}' share." - echo -e "\n" - echo -en "${BOLD}" - echo "==========================================" - echo -n "Press RETURN to continue or 'q' to quit: " - read -r x echo -e "${NC}" - [[ ${x:0:1} == "q" ]] && exit 0 + exit 0 fi echo -e "\n${YELLOW}" @@ -78,11 +73,11 @@ echo echo "When installation is done you will be prompted for a SAMBA password." echo echo -en "${BOLD}" -echo "==========================================" -echo -n "Press RETURN to continue or 'q' to quit: " +echo "=============================================" +echo -n "Press RETURN to continue with installation: " read -r x echo -e "${NC}" -[[ ${x:0:1} == "q" ]] && exit 0 + # Install SAMBA mkdir -p "${ALLSKY_LOGS}"