summaryrefslogtreecommitdiff
path: root/debian/pcp.preinst.tail
diff options
context:
space:
mode:
Diffstat (limited to 'debian/pcp.preinst.tail')
-rw-r--r--debian/pcp.preinst.tail18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/pcp.preinst.tail b/debian/pcp.preinst.tail
new file mode 100644
index 0000000..c12fca6
--- /dev/null
+++ b/debian/pcp.preinst.tail
@@ -0,0 +1,18 @@
+# migrate and clean configs
+
+if dpkg-maintscript-helper supports mv_conffile
+then
+ _version_configs "$@"
+else
+ # Fallback to our homebrew method (might prompt user)
+ #echo >>$PCP_LOG_DIR/install.log
+ #date >>$PCP_LOG_DIR/install.log
+ for base in pmcd pmie pmlogger pmproxy
+ do
+ _clean_configs -v $PCP_SYSCONF_DIR/$base \
+ /var/lib/pcp/config/$base \
+ /etc/$base /etc/pcp/$base \
+ /etc/sysconfig/$base \
+ # 2>>$PCP_LOG_DIR/install.log
+ done
+fi