Skip to content

Commit

Permalink
Append the MiaB management directory to the command search path
Browse files Browse the repository at this point in the history
  • Loading branch information
amedee committed Aug 10, 2024
1 parent 37ba3e4 commit 7615aa0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# If a Mail-in-a-Box management directory exists
# then append it to the commamnd search path.
if [ -d "/root/mailinabox/management" ] ; then
PATH="$PATH:/root/mailinabox/management"
fi
9 changes: 5 additions & 4 deletions roles/mailinabox/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
mode: u=rw,go=r
notify: Restart munin

- name: Expunge Trash and Spam
- name: Copy /etc files
become: true
ansible.builtin.copy:
src: etc/cron.daily/doveadm-expunge.sh
dest: /etc/cron.daily/doveadm-expunge.sh
src: etc/
dest: /etc/
owner: root
mode: u=rwx,go=r
mode: u=rwX,go=rX
directory_mode: u=rwx,go=rx

0 comments on commit 7615aa0

Please sign in to comment.