mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Update v-add-srs-support-to-exim
This commit is contained in:
parent
0f71df9a95
commit
74fecc45d3
1 changed files with 2 additions and 3 deletions
|
@ -15,10 +15,9 @@ gen_pass() {
|
||||||
}
|
}
|
||||||
|
|
||||||
eximversion=$(exim4 --version | grep '^Exim version ' | awk '{print $3}')
|
eximversion=$(exim4 --version | grep '^Exim version ' | awk '{print $3}')
|
||||||
eximversioni="${eximversion%%[^0-9]+([0-9])}"
|
if (( $(echo "$eximversion < 4.96" | bc -l) )); then
|
||||||
eximversionf="${eximversion##+([0-9])[^0-9]}"
|
|
||||||
if [ "$eximversioni" -eq 4 ] && [ "$eximversionf" -lt 96 ]; then
|
|
||||||
echo "= ERROR: Exim SRS support requires Exim 4.96 or higher."
|
echo "= ERROR: Exim SRS support requires Exim 4.96 or higher."
|
||||||
|
echo "You have Exim $eximversion"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue