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

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

if [ "$(apk version -t "$ver_old" "0.3.0-r0")" = '<' ]; then
	# Copy /etc/muacme.conf to /etc/muacme/muacme.conf *if* it was modified by the user.
	if apk audit -q /etc | grep -qx etc/muacme.conf && ! [ -f /etc/muacme/muacme.conf ]; then
		cp -a /etc/muacme.conf /etc/muacme/muacme.conf
	fi
fi