summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-06-05 11:56:54 +0200
committerRamón M. Gómez <ramongomez@us.es>2019-06-05 11:56:54 +0200
commit5c82233260ca16ca25e340f64d4d1a77f56f1cf8 (patch)
treee021d731813839284655a6450b045b5403adae6c /installer
parent12e1eef90150aa6b897c5e5a3fc798dac741a955 (diff)
#916: Setting default values when installing using not interactive mode.
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 5a157c99..794b64b7 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -52,10 +52,21 @@ function userData ()
DEFAULT_OPENGNSYS_DB_USER="usuog" # Usuario por defecto de acceso a la base de datos
DEFAULT_OPENGNSYS_DB_PASSWD="passusuog" # Clave por defecto de acceso a la base de datos
DEFAULT_OPENGNSYS_CLIENT_PASSWD="og" # Clave por defecto de acceso del cliente
+ DEFAULT_OGLIVE="ogLive-bionic-5.0.0-15-generic-amd64-r20190515.97b8472.iso " # Cliente ogLive
echo -e "\\nOpenGnsys Installation"
echo "=============================="
+ if [[ $- =~ s ]]; then
+ echo -e "\\nNot interactive mode: setting default configuration values.\\n"
+ MYSQL_ROOT_PASSWORD="$DEFAULT_MYSQL_ROOT_PASSWORD"
+ OPENGNSYS_DB_USER="$DEFAULT_OPENGNSYS_DB_USER"
+ OPENGNSYS_DB_PASSWD="$DEFAULT_OPENGNSYS_DB_PASSWD"
+ OPENGNSYS_CLIENT_PASSWD="$DEFAULT_OPENGNSYS_CLIENT_PASSWD"
+ OGLIVE="$DEFAULT_OGLIVE"
+ return
+ fi
+
# Clave root de MySQL
echo -n -e "\\nEnter root password for MySQL (${DEFAULT_MYSQL_ROOT_PASSWORD}): "
enterPassword "$DEFAULT_MYSQL_ROOT_PASSWORD"