stdevPavelmc / mailad

Software to provision a mail server with users from a Windows or Samba 4 Active Directory
GNU General Public License v3.0
33 stars 11 forks source link

[BUG] Debian postmap not found on the groups update script. #172

Closed stdevPavelmc closed 2 years ago

stdevPavelmc commented 2 years ago

Describe the bug In Debian 11, the groups script fails at the end of the provision, error follows.

(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 35933 files and directories currently installed.)
Preparing to unpack .../swaks_20201014.0-1_all.deb ...
Unpacking swaks (20201014.0-1) ...
Setting up swaks (20201014.0-1) ...
/etc/cron.daily/mail_groups_update: line 115: postmap: command not found
scripts/provision.sh: line 182: postmap: command not found
scripts/provision.sh: line 182: postmap: command not found
scripts/provision.sh: line 182: postmap: command not found

The problem is that in some scenarios (not clear enough, it works on my machine) the /sbin & /usr/sbin are not exported on the PATH var, and postmap resides on sbin.

This was fixed on the provision on #159 but bite us here on this script.

Fix on the way...