X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostinst-moveconffile;fp=autoscripts%2Fpostinst-moveconffile;h=28f061e343da45a9a11acf7e2db77e9a20d241b1;hb=4ad78d9db390d7c68d48fc9017fbec516a68a9fe;hp=0000000000000000000000000000000000000000;hpb=e7ab4dca7d240f48a51960a6978c05d2f5aa7a97;p=debhelper.git diff --git a/autoscripts/postinst-moveconffile b/autoscripts/postinst-moveconffile new file mode 100644 index 0000000..28f061e --- /dev/null +++ b/autoscripts/postinst-moveconffile @@ -0,0 +1,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