cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

357ca480bd54c057b494685ef74ad89f5bef27de

Author: Vasilii Kolobkov on 12/19/2018

Committer: Vasilii Kolobkov on 12/19/2018

Call 'newaliases' if smtpd service is running

Stats

aliases                | 1 +
steps/smtpd/newaliases | 7 +++++++
2 files changed, 8 insertions(+)

Patch

diff --git a/aliases b/aliases
index e15b47e..6878a06 100644
--- a/aliases
+++ b/aliases
@@ -18,5 +18,6 @@ alias rcstart="cfgfoo ${CFGFOOPATH}/steps/rc/start "
 alias rcreload="cfgfoo ${CFGFOOPATH}/steps/rc/reload "
 
 alias smtpdcheck="cfgfoo ${CFGFOOPATH}/steps/smtpd/check -s "
+alias smtpdnewaliases="cfgfoo ${CFGFOOPATH}/steps/smtpd/newaliases "
 
 alias users_obsd_add="cfgfoo ${CFGFOOPATH}/steps/users/obsd/add "
diff --git a/steps/smtpd/newaliases b/steps/smtpd/newaliases
new file mode 100644
index 0000000..c0fa5e3
--- /dev/null
+++ b/steps/smtpd/newaliases
@@ -0,0 +1,7 @@
+step_taken() {
+	! rcctl check smtpd
+}
+
+take_step() {
+	newaliases
+}