mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 11:52:25 +01:00
20 lines
326 B
Bash
20 lines
326 B
Bash
#!/bin/sh
|
|
|
|
# update the dynamicmaps.cf
|
|
conf=/etc/postfix/dynamicmaps.cf
|
|
|
|
sed -i -e '/\#\# AUTO BEGIN/,/\#\# AUTO END/d' $conf
|
|
|
|
(
|
|
echo '## AUTO BEGIN ##'
|
|
if cd /usr/lib/postfix/; then
|
|
for i in *.so; do
|
|
m=${i#dict_}
|
|
m=${m%.so}
|
|
echo -e "$m\t/usr/lib/postfix/$i\tdict_${m}_open"
|
|
done
|
|
fi
|
|
|
|
echo '## AUTO END ##'
|
|
) >> $conf
|