diff options
author | Andrew Tkalia <anddt@yandex.ru> | 2013-04-28 11:43:08 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2013-04-28 11:43:08 -0300 |
commit | 25db2752c493338598050d68261c3a5497ef44bb (patch) | |
tree | 552891cd1ea714d5638b363b2bb3ea1d970cde71 /network/prosody/doinst.sh | |
parent | cd5a28a122e4d2e8d62460ed5fd8a07579d5d685 (diff) | |
download | slackbuilds-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.sh | 16 |
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 |