Update 'install.sh'

Changed guacamole questions for additional install
This commit is contained in:
Gyorgy Berenyi
2023-08-04 06:28:54 +00:00
parent 15cb505433
commit d44ceb3765

View File

@@ -421,17 +421,15 @@ ask_additionals() {
fi; fi;
done done
echo "Do you want TOTP via login? (Y/n)"; echo "Do you want TOTP via login? (Y/n)";
while read -r -s TOTP_USE; do read -r -s TOTP_USE;
if [ "$TOTP_USE" == "" ] || [ "$TOTP_USE" == "y" ] || [ "$TOTP_USE" == "Y" ] ; then if [ "$TOTP_USE" == "" ] || [ "$TOTP_USE" == "y" ] || [ "$TOTP_USE" == "Y" ] ; then
TOTP_USE="true"; TOTP_USE="true";
fi; fi;
done echo "Do you want limitation in case invalid login or password? Please add a number how many minutes for deny retry. If you add 0 means it will disabled. If just press enter means limitation will be set 5 minutes by default";
echo "Do you want limitation in case invalid login or password? Please add a number how many minutes for deny retry. If you add 0 means it will disabled. If just press enter means limitation will be set 5 minutes by default"; read -r -s BAN_DURATION;
while read -r -s BAN_DURATION; do if [ "$BAN_DURATION" == "" ] ; then
if [ "$BAN_DURATION" == "" ] ; then BAN_DURATION="5";
BAN_DURATION="5"; fi;
fi;
done
fi fi
} }