mirror of
https://github.com/myvesta/vesta.git
synced 2025-03-12 04:35:23 -07:00
Update v-add-srs-support-to-exim
This commit is contained in:
parent
0f71df9a95
commit
74fecc45d3
@ -15,10 +15,9 @@ gen_pass() {
|
||||
}
|
||||
|
||||
eximversion=$(exim4 --version | grep '^Exim version ' | awk '{print $3}')
|
||||
eximversioni="${eximversion%%[^0-9]+([0-9])}"
|
||||
eximversionf="${eximversion##+([0-9])[^0-9]}"
|
||||
if [ "$eximversioni" -eq 4 ] && [ "$eximversionf" -lt 96 ]; then
|
||||
if (( $(echo "$eximversion < 4.96" | bc -l) )); then
|
||||
echo "= ERROR: Exim SRS support requires Exim 4.96 or higher."
|
||||
echo "You have Exim $eximversion"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user