Browse Source

Add auto-setup to install script

tests_ci
Maël Kervella 8 years ago
parent
commit
bd91d0cc3e
  1. 14
      install_re2o.sh

14
install_re2o.sh

@ -766,6 +766,8 @@ main_function() {
echo " LDAP" echo " LDAP"
echo " * <local_domain> the domain extension to use for the LDAP structure" echo " * <local_domain> the domain extension to use for the LDAP structure"
echo " in LDAP notation" echo " in LDAP notation"
echo " * {auto-setup} ---- Automatic setup with default values, use this for quick"
echo " but entire setup."
echo "" echo ""
else else
subcmd="$1" subcmd="$1"
@ -835,6 +837,18 @@ main_function() {
fi 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 "Unknown subcommand: $subcmd"
echo "Use 'install_re2o help' to display some help" echo "Use 'install_re2o help' to display some help"

Loading…
Cancel
Save