summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2011-02-13 15:25:21 (GMT)
committer tg(x) <*@tg-x.net>2013-06-05 15:58:40 (GMT)
commit1ce40494640049c503499fe8711e071f3bad6ac5 (patch)
treeed1f0548fe10c92ab1316ceea34c96748c648ac5
parent62cab6e61b084d5f51a167709cbfb621118ef94a (diff)
gitzone-shell git
-rwxr-xr-xbin/gitzone2
-rwxr-xr-xbin/gitzone-shell8
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/gitzone b/bin/gitzone
index 8f35c32..d7c164b 100755
--- a/bin/gitzone
+++ b/bin/gitzone
@@ -209,7 +209,7 @@ sub install_zones {
my ($zone, $dir) = fileparse $file;
$dir = substr $dir, 0, -1;
my $view = $zones->{$user}->{$dir}->{$zone};
- print "$zone: ", `$rndc reload '$zone' $class $_` for @$view;
+ print "$_/$zone: ", `$rndc reload '$zone' $class $_` for @$view;
}
unlink $list_file;
diff --git a/bin/gitzone-shell b/bin/gitzone-shell
index 6b62928..c800f68 100755
--- a/bin/gitzone-shell
+++ b/bin/gitzone-shell
@@ -6,9 +6,9 @@ repo='zones'
allow_key_mgmt_file='.ssh/authorized_keys_edit_allowed'
# paths
-git_shell=/usr/bin/git-shell
-gitzone=/usr/bin/gitzone
config=/etc/gitzone.conf
+gitzone=/usr/bin/gitzone
+git=/usr/bin/git
grep=/bin/grep
function error {
@@ -20,9 +20,9 @@ if [ "$1" != "-c" ]; then error; fi
cmd=$2
if [[ "$cmd" == git-upload-pack* ]]; then
- $git_shell -c "git-upload-pack '$repo'"
+ $git upload-pack $repo
elif [[ "$cmd" == git-receive-pack* ]]; then
- $git_shell -c "git-receive-pack '$repo'"
+ $git receive-pack $repo
elif [[ "$cmd" == update-record* ]]; then
$gitzone $config update-record "$cmd"
elif [ -f $allow_key_mgmt_file ]; then