Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 420a9399 authored by Maël Kervella's avatar Maël Kervella

Typo and use _ask_value everywhere

parent 823a1640
...@@ -17,7 +17,7 @@ _ask_value() { ...@@ -17,7 +17,7 @@ _ask_value() {
# * option#: A possible option for the user. If no option is specifed, # * option#: A possible option for the user. If no option is specifed,
# all inputs are considered valid # all inputs are considered valid
# #
# Echo: The value entered by the user. Should be one of the choicesN if # Echo: The value entered by the user. Should be one of the choices if
# not ommited # not ommited
### ###
...@@ -56,7 +56,7 @@ install_requirements() { ...@@ -56,7 +56,7 @@ install_requirements() {
### Usage: install_requirements ### Usage: install_requirements
# #
# This function will install the required packages from APT repository # This function will install the required packages from APT repository
# and Pypi repository. Those packages are qll required for Re2o to work # and Pypi repository. Those packages are all required for Re2o to work
# properly. # properly.
### ###
...@@ -129,14 +129,7 @@ install_database() { ...@@ -129,14 +129,7 @@ install_database() {
else else
echo "Please execute the following command on the remote SQL server and then continue" echo "Please execute the following command on the remote SQL server and then continue"
echo "$mysql_command" echo "$mysql_command"
while true; do _ask_value "Continue" "yes" "no"; if [ "$VALUE" == "no" ]; then exit; fi
read -p "Continue (y/n)?" choice
case "$choice" in
y|Y ) break;;
n|N ) exit;;
* ) echo "Invalid";;
esac
done
fi fi
else else
...@@ -161,14 +154,7 @@ install_database() { ...@@ -161,14 +154,7 @@ install_database() {
echo "sudo -u postgres psql $pgsql_command1" echo "sudo -u postgres psql $pgsql_command1"
echo "sudo -u postgres psql $pgsql_command2" echo "sudo -u postgres psql $pgsql_command2"
echo "sudo -u postgres psql $pgsql_command3" echo "sudo -u postgres psql $pgsql_command3"
while true; do _ask_value "Continue" "yes" "no"; if [ "$VALUE" == "no" ]; then exit; fi
read -p "Continue (y/n)?" choice
case "$choice" in
y|Y ) break;;
n|N ) exit;;
* ) echo "Invalid";;
esac
done
fi fi
fi fi
...@@ -239,14 +225,7 @@ install_ldap() { ...@@ -239,14 +225,7 @@ install_ldap() {
echo "Please execute the following command on the remote LDAP server and then continue" echo "Please execute the following command on the remote LDAP server and then continue"
echo "./install_re2o.sh setup-ldap $password $domain" echo "./install_re2o.sh setup-ldap $password $domain"
while true; do _ask_value "Continue" "yes" "no"; if [ "$VALUE" == "no" ]; then exit; fi
read -p "Continue (y/n)?" choice
case "$choice" in
y|Y ) break;;
n|N ) exit;;
* ) echo "Invalid";;
esac
done
fi fi
...@@ -421,15 +400,8 @@ install_webserver() { ...@@ -421,15 +400,8 @@ install_webserver() {
else else
echo "Nginx automatic setup is not supported. Please configure it manually." echo "Nginx automatic setup is not supported. Please configure it manually."
echo "Please onfirm you have acknowledged this message." echo "Please confirm you have acknowledged this message."
while true; do _ask_value "Acknowledged" "yes"
read -p "Acknowledged (y/n)?" choice
case "$choice" in
y|Y ) break;;
n|N ) exit;;
* ) echo "Invalid";;
esac
done
fi fi
...@@ -726,7 +698,7 @@ interactive_guide() { ...@@ -726,7 +698,7 @@ interactive_guide() {
# Prompt to inform the installation process is over # Prompt to inform the installation process is over
TITLE="End of the setup" TITLE="End of the setup"
MSGBOX="You can now visit $url_server and connect with the credentials you just entered. This user hhas the superuser rights, meaning he can access and do everything." MSGBOX="You can now visit $url_server and connect with the credentials you just entered. This user has the superuser rights, meaning he can access and do everything."
end="$(dialog --clear --backtitle "$BACKTITLE" \ end="$(dialog --clear --backtitle "$BACKTITLE" \
--title "$TITLE" --msgbox "$MSGBOX" \ --title "$TITLE" --msgbox "$MSGBOX" \
$HEIGHT $WIDTH 2>&1 >/dev/tty)" $HEIGHT $WIDTH 2>&1 >/dev/tty)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment