mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2025-01-25 17:44:21 +00:00
Add auto-setup to install script
This commit is contained in:
parent
fdfd562959
commit
bd91d0cc3e
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue