comparison scripts/dns_srv/configure_dns_srv.sh @ 48:358a4fc0e091

scripts (dns_srv): update script usage information
author souliane <souliane@mailoo.org>
date Wed, 15 Jul 2015 12:37:14 +0200
parents a6af040be754
children
comparison
equal deleted inserted replaced
47:36d158a50c8a 48:358a4fc0e091
2 2
3 # This script allows you to quickly change your bind9 configuration: 3 # This script allows you to quickly change your bind9 configuration:
4 # - define an internal domain and bind it to 127.0.0.1 4 # - define an internal domain and bind it to 127.0.0.1
5 # - add SRV records to use this domain with your local XMPP server 5 # - add SRV records to use this domain with your local XMPP server
6 # 6 #
7 # BE SURE TO BACKUP /etc/bind AND /var/cache/bind BEFORE USING THIS SCRIPT! 7 # It will mess up your actual bind9 configuration. It should not be used on
8 # production servers but only on your development machine with local servers.
9 # USE AT YOUR OWN RISK! Be sure to BACKUP /etc/bind and /var/cache/bind before!
8 # 10 #
9 # Configuration files based on: 11 # Configuration files based on:
10 # - http://www.madboa.com/geek/soho-bind 12 # - http://www.madboa.com/geek/soho-bind
11 # - http://wiki.xmpp.org/web/SRV_Records 13 # - http://wiki.xmpp.org/web/SRV_Records
12 # - http://prosody.im/doc/dns 14 # - http://prosody.im/doc/dns
13 # 15 #
14 # For this to work, Prosody configuration must define the domain as a VirtualHost. 16 # For this to work, Prosody configuration must define the domain as a VirtualHost.
15 # It is also assumed that the Prosody "directory" option is set to "/var/cache/bind". 17 # It is also assumed that the Prosody "directory" option is set to "/var/cache/bind".
16 # 18 #
17 # Finally, you may want to modify the SàT configuration file to set the option 19 # Finally, you may want to modify your SàT configuration file to set the option
18 # "new_account_domain" to that domain passed in $1 in order to register new 20 # "new_account_domain" to that domain passed in $1 in order to register new
19 # account from Libervia, and the "jid" option of sat_pubsub should be set to 21 # account from Libervia, and the "jid" option of sat_pubsub should be set to
20 # "sat-pubsub.<domain>" for the microblogging feature to work. 22 # "sat-pubsub.<domain>" for the (micro)blogging feature to work.
23 #
24 # You can also check this page with additional information about how to restore
25 # your previously configured domains (if any...) after having ran the script:
26 # http://wiki.goffi.org/wiki/How_to_change_your_Libervia%27s_domain_name/en
21 27
22 if [ $# -lt 2 ]; then 28 if [ $# -lt 2 ]; then
23 echo "Usage: `basename $0` <domain> <c2s_port>" 29 echo "Usage: `basename $0` <domain> <c2s_port>"
24 exit 1 30 exit 1
25 fi 31 fi