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;
done
echo "Do you want TOTP via login? (Y/n)";
while read -r -s TOTP_USE; do
if [ "$TOTP_USE" == "" ] || [ "$TOTP_USE" == "y" ] || [ "$TOTP_USE" == "Y" ] ; then
TOTP_USE="true";
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";
while read -r -s BAN_DURATION; do
if [ "$BAN_DURATION" == "" ] ; then
BAN_DURATION="5";
fi;
done
read -r -s TOTP_USE;
if [ "$TOTP_USE" == "" ] || [ "$TOTP_USE" == "y" ] || [ "$TOTP_USE" == "Y" ] ; then
TOTP_USE="true";
fi;
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;
if [ "$BAN_DURATION" == "" ] ; then
BAN_DURATION="5";
fi;
fi
}