summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-moveconffile
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-moveconffile')
-rw-r--r--autoscripts/postinst-moveconffile9
1 files changed, 9 insertions, 0 deletions
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