aboutsummaryrefslogtreecommitdiffstats
path: root/community/clamsmtp/clamsmtp.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'community/clamsmtp/clamsmtp.pre-upgrade')
-rw-r--r--community/clamsmtp/clamsmtp.pre-upgrade16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/clamsmtp/clamsmtp.pre-upgrade b/community/clamsmtp/clamsmtp.pre-upgrade
new file mode 100644
index 0000000000..c397bfc382
--- /dev/null
+++ b/community/clamsmtp/clamsmtp.pre-upgrade
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+old=/etc/conf.d/clamsmtp
+new=/etc/conf.d/clamsmtpd
+
+if [ -f "$old" ] && [ ! -f "$new" ]; then
+ mv "$old" "$new"
+ echo " *"
+ echo " * NOTICE: $old was renamed to $new"
+ echo " *"
+fi
+
+addgroup -S clamav 2>/dev/null
+adduser -S -D -H -s /bin/false -G clamav -g clamav clamav 2>/dev/null
+
+exit 0