summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-moveconffile
blob: 28f061e343da45a9a11acf7e2db77e9a20d241b1 (plain)
1
2
3
4
5
6
7
8
9
if [ "$1" = configure ]; then
	if [ -e "#OLD#" ]; then
		echo "Preserving user changes to #NEW# ..."
		if [ -e "#NEW#" ]; then
			mv -f "#NEW#" "#NEW#.dpkg-new"
		fi
		mv -f "#OLD#" "#NEW#"
	fi
fi