Bug 7489 - fix compatibility with *BSD for automasscheck script
Summary: fix compatibility with *BSD for automasscheck script
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Masses (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: PC OpenBSD
: P2 normal
Target Milestone: Undefined
Assignee: Dave Jones
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-31 07:33 UTC by Giovanni Bechis
Modified: 2017-11-27 15:26 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status
*BSD compatibility for automasscheck-minimal.sh patch None Giovanni Bechis [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni Bechis 2017-10-31 07:33:33 UTC
Created attachment 5468 [details]
*BSD compatibility for automasscheck-minimal.sh

automasscheck-minimal.sh is not compatible with *BSD systems because seq(1) is not installed by default, change the script to avoid the use of seq(1).
Comment 1 Dave Jones 2017-11-26 22:20:19 UTC
Patch applied and testing on my masscheck instance before committing.
Comment 2 Giovanni Bechis 2017-11-27 07:28:06 UTC
On top of that #!/bin/bash is not needed, #!/bin/sh works fine as well.
Comment 3 Dave Jones 2017-11-27 15:26:29 UTC
Thanks for the info.  Changed the shell to /bin/sh.