mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Remove smtp packager addon, implement admin mail
This commit is contained in:
@@ -55,7 +55,6 @@ wizards:
|
||||
- https://github.com/pkgr/addon-postgres
|
||||
- https://github.com/pkgr/addon-apache2.git
|
||||
- ./packaging/addons/repositories
|
||||
- https://github.com/pkgr/addon-smtp.git
|
||||
- https://github.com/pkgr/addon-memcached.git
|
||||
- ./packaging/addons/openproject
|
||||
buildpack: https://github.com/opf/heroku-buildpack-multi.git#master
|
||||
|
||||
+19
-2
@@ -9,7 +9,7 @@ input_start() {
|
||||
if [ "$server_autoinstall" = "skip" ] ; then
|
||||
STATE="input_hostname"
|
||||
else
|
||||
STATE="done"
|
||||
STATE="input_admin_mail"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -32,12 +32,26 @@ input_hostname_params() {
|
||||
input_protocol_params() {
|
||||
wiz_put "server/ssl"
|
||||
if wiz_ask ; then
|
||||
STATE="done"
|
||||
STATE="input_admin_mail"
|
||||
else
|
||||
STATE="input_hostname"
|
||||
fi
|
||||
}
|
||||
|
||||
input_admin_mail() {
|
||||
if wiz_get "smtp/admin_email" &>/dev/null ; then
|
||||
STATE="done"
|
||||
return
|
||||
fi
|
||||
|
||||
wiz_put "openproject/admin_email"
|
||||
if wiz_ask ; then
|
||||
STATE="done"
|
||||
else
|
||||
STATE="start"
|
||||
fi
|
||||
}
|
||||
|
||||
state_machine() {
|
||||
case "$1" in
|
||||
"start")
|
||||
@@ -49,6 +63,9 @@ state_machine() {
|
||||
"input_protocol")
|
||||
input_protocol_params
|
||||
;;
|
||||
"input_admin_mail")
|
||||
input_admin_mail
|
||||
;;
|
||||
"done")
|
||||
echo "DONE"
|
||||
exit 0
|
||||
|
||||
@@ -6,6 +6,10 @@ set -e
|
||||
|
||||
CLI="${APP_NAME}"
|
||||
|
||||
# Set the configured admin email
|
||||
ADMIN_EMAIL="$(wiz_get "openproject/admin_email" || wiz_get "smtp/admin_email")"
|
||||
${CLI} config:set RECOMPILE_RAILS_ASSETS="true"
|
||||
|
||||
# Check for custom gems
|
||||
custom_gemfile=$(${CLI} config:get CUSTOM_PLUGIN_GEMFILE || echo "")
|
||||
if [ -n "$custom_gemfile" ] && [ -f "$custom_gemfile" ]; then
|
||||
|
||||
@@ -12,4 +12,10 @@ Template: server/hostname
|
||||
Type: string
|
||||
Default: www.example.com
|
||||
Description: Your fully qualified domain name:
|
||||
Enter the fully qualified domain name (FQDN), where this server can be reached.
|
||||
Enter the fully qualified domain name (FQDN), where this server can be reached.
|
||||
|
||||
Template: openproject/admin_email
|
||||
Type: string
|
||||
Default: admin@example.net
|
||||
Description: Your email address for the admin account:
|
||||
Enter the email address to be used for first admin account.
|
||||
|
||||
Reference in New Issue
Block a user