diff options
author | Gerardo Zamudio <gerardo.zamudio@linux.com> | 2015-10-28 23:26:36 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-10-28 23:26:36 +0700 |
commit | 5241c19d0f1fdff180114c1ae7bdddf37dbc1824 (patch) | |
tree | daa92f12d9db49706fdac5d71bbde7059c8c008b /network/prosody/doinst.sh | |
parent | 53e7378423aade2c5315917f8b63381cc3d3d241 (diff) | |
download | slackbuilds-5241c19d0f1fdff180114c1ae7bdddf37dbc1824.tar.gz |
network/prosody: Updated for version 0.9.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/prosody/doinst.sh')
-rw-r--r-- | network/prosody/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/network/prosody/doinst.sh b/network/prosody/doinst.sh index 330cafc8a7..58d9be9f5b 100644 --- a/network/prosody/doinst.sh +++ b/network/prosody/doinst.sh @@ -8,6 +8,17 @@ config() { fi } +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + config etc/prosody/prosody.cfg.lua.new config etc/prosody/migrator.cfg.lua.new config etc/prosody/certs/openssl.cnf.new @@ -18,3 +29,5 @@ config etc/prosody/certs/Makefile.new config etc/prosody/certs/localhost.cnf.new config etc/prosody/certs/example.com.cnf.new config etc/prosody/certs/localhost.crt.new + +preserve_perms etc/rc.d/rc.prosody.new |