diff options
Diffstat (limited to 'network/prosody/doinst.sh')
-rw-r--r-- | network/prosody/doinst.sh | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/network/prosody/doinst.sh b/network/prosody/doinst.sh index 58d9be9f5b..93d6f240b8 100644 --- a/network/prosody/doinst.sh +++ b/network/prosody/doinst.sh @@ -8,17 +8,6 @@ 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 @@ -30,4 +19,8 @@ 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 +if ! [ -L etc/rc.d/rc.prosody ] ; +then + rm -f etc/rc.d/rc.prosody + ln -s /usr/bin/prosodyctl etc/rc.d/rc.prosody +fi |