aboutsummaryrefslogtreecommitdiffstats
path: root/community/rspamd/rspamd.post-upgrade
blob: cf3e277ddf50f15ec3c7b69aa1aac41de25a3f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

ver_new="$1"
ver_old="$2"

if [ "$(apk version -t "$ver_old" '1.7.8-r1')" = '<' ]; then
	if [ "$(stat -c %U:%G /var/log/rspamd)" = 'root:rspamd' ]; then
		chown rspamd:rspamd /var/log/rspamd
	fi
fi

exit 0