Update 'install.sh'
Changed guacamole questions for additional install
This commit is contained in:
20
install.sh
20
install.sh
@@ -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
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user