Skip to content

Commit

Permalink
Add script to enforce mail domain configuration if not already config…
Browse files Browse the repository at this point in the history
…ured
  • Loading branch information
stephdl committed May 3, 2024
1 parent e3cd987 commit 23289b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions imageroot/actions/configure-module/92enforce_mail_domain
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

#
# Copyright (C) 2024 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

# Read the piler configuration and expect for configured domains
# else build again the configuration (this is useful for the first run)
if grep -q "\$domains = \[\];" piler_etc/config-site.php; then
../bin/expand-configuration
fi

0 comments on commit 23289b3

Please sign in to comment.