We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684f884 commit c341032Copy full SHA for c341032
email/debian/postinst
@@ -147,20 +147,7 @@ done
147
#
148
# Only restart clamav if a domain contains an 'antivirus' file
149
150
-
151
-antivirus_enabled=false
152
153
-for domain in /srv/*; do
154
- [ -h "$domain" ] && continue
155
- [ ! -d "$domain" ] && continue
156
157
- antivirus="$domain/config/antivirus"
158
- if [ -e "$antivirus" ] ; then
159
- antivirus_enabled=true
160
- fi
161
-done
162
163
-if [ "$antivirus_enabled" = true ] ; then
+if ( stat /srv/*/config/antivirus > /dev/null 2>&1 ) ; then
164
for i in clamav-daemon clamav-freshclam; do
165
service $i restart || true
166
done
0 commit comments