Browse Source

Permissions

Bob Mottram 8 years ago
parent
commit
2325ec410b
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/freedombone-app-xmpp

+ 5
- 1
src/freedombone-app-xmpp View File

660
 
660
 
661
     cp /etc/ssl/certs/xmpp.* /etc/prosody/certs
661
     cp /etc/ssl/certs/xmpp.* /etc/prosody/certs
662
     cp /etc/ssl/private/xmpp.* /etc/prosody/certs
662
     cp /etc/ssl/private/xmpp.* /etc/prosody/certs
663
-    chown -R prosody /etc/prosody
664
     update_default_domain
663
     update_default_domain
665
 
664
 
666
     xmpp_create_config
665
     xmpp_create_config
668
     # TODO comment this out after debian supports prosody 0.10 or later
667
     # TODO comment this out after debian supports prosody 0.10 or later
669
     install_xmpp_nightly
668
     install_xmpp_nightly
670
 
669
 
670
+    chown -R prosody /etc/prosody
671
+    chown -R prosody /var/lib/prosody
672
+    chown -R prosody /usr/lib/prosody
673
+    chmod -R 700 /etc/prosody/conf.d
674
+
671
     systemctl restart prosody
675
     systemctl restart prosody
672
 
676
 
673
     prosodyctl register $MY_USERNAME $DEFAULT_DOMAIN_NAME "$XMPP_PASSWORD"
677
     prosodyctl register $MY_USERNAME $DEFAULT_DOMAIN_NAME "$XMPP_PASSWORD"