commit d0c04ae88fc01908b2c04bac5d03a288d1f608a6 parent 5ab7ca995262b68d51d7d754336fad6d3cd5595c Author: Jaromil <jaromil@dyne.org> Date: Sat, 1 Jun 2013 13:45:21 +0000 small fixes to install script Diffstat:
M | bin/gitzone-install | | | 17 | ++++++++++------- |
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/bin/gitzone-install b/bin/gitzone-install @@ -59,19 +59,25 @@ usermod -aG bind $user # add gitzone cache dir mkdir -p /var/cache/bind/$user chown $user:bind /var/cache/bind/$user +chmod o-rwx /var/cache/bind/$user touch /etc/bind/named.conf.local grep "${user}.conf" /etc/bind/named.conf.local > /dev/null if ! [ $? = 0 ]; then cat <<EOF >> /etc/bind/named.conf.local -include "/etc/bind/repos/${user}.conf" +include "/etc/bind/repos/${user}.conf"; EOF fi # success -echo "Gitzone installed for user $user" -echo "git repository url (via ssh)" -echo "$user@`hostname -f`:zones/$user" +cat <<EOF + +### Gitzone installed for user $user +## git repository url (via ssh): + + $user@`hostname -f`:zones/$user + +EOF fi # gitzone created @@ -88,9 +94,6 @@ zone "domain.com" { }; Then restart the bind9 daemon. - -2) in /etc/bind/named.conf.local add a line: -include "/etc/bind/repos/${user}.conf"; EOF