Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

prevent error output during initial installation with smtp skip

Markus Kahl61f9ade7189e
diff --git a/packaging/scripts/postinstall b/packaging/scripts/postinstall
index 8dbc225e7b8..4ad5f529595 100644
--- a/packaging/scripts/postinstall
+++ b/packaging/scripts/postinstall
@@ -4,7 +4,11 @@
# the database. This will override existing settings.
# The user can just choose `skip` during `reconfigure` if they do not want that.
-source /etc/${APP_NAME}/conf.d/smtp
+SMTP_CONFIG_FILE=/etc/${APP_NAME}/conf.d/smtp
+
+if [ -f "$SMTP_CONFIG_FILE" ]; then
+ source $SMTP_CONFIG_FILE
+fi
if [ "$EMAIL_DELIVERY_METHOD" = "smtp" ]; then
${CLI} run rake "setting:set_to_env[\