summaryrefslogtreecommitdiff
path: root/network/prosody/doinst.sh
diff options
context:
space:
mode:
authorAndrew Tkalia <anddt@yandex.ru>2013-04-28 11:43:08 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2013-04-28 11:43:08 -0300
commit25db2752c493338598050d68261c3a5497ef44bb (patch)
tree552891cd1ea714d5638b363b2bb3ea1d970cde71 /network/prosody/doinst.sh
parentcd5a28a122e4d2e8d62460ed5fd8a07579d5d685 (diff)
downloadslackbuilds-25db2752c493338598050d68261c3a5497ef44bb.tar.gz
network/prosody: Added (Lua XMPP Server)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
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