summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-06-01 13:45:21 (GMT)
committer tg(x) <*@tg-x.net>2013-06-05 16:55:43 (GMT)
commitd0c04ae88fc01908b2c04bac5d03a288d1f608a6 (patch)
treebcae6ecc67cd441daf5b3019914e612c13eab724
parent5ab7ca995262b68d51d7d754336fad6d3cd5595c (diff)
small fixes to install script
-rwxr-xr-xbin/gitzone-install17
1 files changed, 10 insertions, 7 deletions
diff --git a/bin/gitzone-install b/bin/gitzone-install
index fccef75..854d145 100755
--- 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