summaryrefslogtreecommitdiff
path: root/network/prosody/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/prosody/doinst.sh')
-rw-r--r--network/prosody/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/prosody/doinst.sh b/network/prosody/doinst.sh
new file mode 100644
index 0000000000..4cac92dbfa
--- /dev/null
+++ b/network/prosody/doinst.sh
@@ -0,0 +1,16 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config etc/prosody/migrator.cfg.lua.new
+config etc/prosody/prosody.cfg.lua.new
+config etc/prosody/certs/localhost.key.new
+config etc/prosody/certs/localhost.cert.new
+config etc/prosody/certs/Makefile.new
+config etc/prosody/certs/openssl.cnf.new