aboutsummaryrefslogtreecommitdiff
path: root/src/org/euandre
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-16 20:36:11 -0300
committerEuAndreh <eu@euandre.org>2023-03-16 20:36:11 -0300
commit3952ddfc36b798bcd1e8e46329194bb5e5caeaa6 (patch)
tree6baa28d316d49f1431013e4fa043b48be96e4ba6 /src/org/euandre
parentqueue.scm: Add rottlog-mailutils-sendmail package (diff)
downloadpackage-repository-3952ddfc36b798bcd1e8e46329194bb5e5caeaa6.tar.gz
package-repository-3952ddfc36b798bcd1e8e46329194bb5e5caeaa6.tar.xz
queue.scm: Conditionally create /var/mail on activation
Diffstat (limited to 'src/org/euandre')
-rw-r--r--src/org/euandre/queue.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm
index 5790826..8d18f3b 100644
--- a/src/org/euandre/queue.scm
+++ b/src/org/euandre/queue.scm
@@ -1106,9 +1106,10 @@ header_checks = regexp:{ { /^Received:.*/ IGNORE }, { /^X-Originating-IP:.*/ IGN
(format (current-error-port)
"Creating Postfix queue directory: \"~a\".~%" #$queue-directory)
(mkdir-p/perms #$queue-directory user #o755)
- (format (current-error-port)
- "Creating email spool director: \"/var/mail\".~%")
- (mkdir-p/perms "/var/mail" user #o755)
+ (unless (directory-exists? "/var/mail")
+ (format (current-error-port)
+ "Creating email spool director: \"/var/mail\".~%")
+ (mkdir-p/perms "/var/mail" user #o755))
(format (current-error-port)
"Updating /etc/aliases: FIXME.~%")
;; FIXME: add -c option