From bd91d0cc3e24f58bcc2e6da6549d80224bd82bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Mon, 25 Jun 2018 20:16:03 +0000 Subject: [PATCH] Add auto-setup to install script --- install_re2o.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/install_re2o.sh b/install_re2o.sh index 6168ec08..698df6f6 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -766,6 +766,8 @@ main_function() { echo " LDAP" echo " * the domain extension to use for the LDAP structure" echo " in LDAP notation" + echo " * {auto-setup} ---- Automatic setup with default values, use this for quick" + echo " but entire setup." echo "" else subcmd="$1" @@ -835,6 +837,18 @@ main_function() { fi ;; + auto-setup ) + install_requirements + install_database 1 1 re2o re2o re2o + install_ldap 1 re2o "dc=example,dc=net" + write_settings_file 1 localhost re2o re2o re2o \ + "cn=admin,dc=example,dc=net" 2 re2o "dc=example,dc=net" \ + "no-reply@example.net" 25 "example.net" "re2o.example.net" + update_django + create_superuser + install_webserver 1 2 "re2o.example.net" + ;; + * ) echo "Unknown subcommand: $subcmd" echo "Use 'install_re2o help' to display some help"