8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2025-01-11 02:34:28 +00:00

Add auto-setup to install script

This commit is contained in:
Maël Kervella 2018-06-25 20:16:03 +00:00
parent fdfd562959
commit bd91d0cc3e

View file

@ -766,6 +766,8 @@ main_function() {
echo " LDAP"
echo " * <local_domain> 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"