diff --git a/start.sh b/start.sh index 337dc68..4248c2d 100755 --- a/start.sh +++ b/start.sh @@ -684,6 +684,123 @@ sync_dir "$APP_DIR/server/mail-templates" "$MUSEUM_RUNTIME_DIR/mail-templates" sync_dir "$APP_DIR/server/assets" "$MUSEUM_RUNTIME_DIR/assets" sync_dir "$APP_DIR/data" "$MUSEUM_RUNTIME_DIR/data" +customize_mail_templates() { + local base_template="$MUSEUM_RUNTIME_DIR/mail-templates/base.html" + if [ ! -f "$base_template" ]; then + return + fi + cat > "$base_template" < + + + + + + +
 
+
+
+ {{block "content" .}} Default Content {{end}} +
+
+
+ + + +{{end}} +EOF_BASE_TEMPLATE + chown cloudron:cloudron "$base_template" +} + +customize_mail_templates + if [ ! -x "$MUSEUM_BIN" ]; then log ERROR "Museum binary not found at $MUSEUM_BIN" exit 1