gitzone

git-based zone management tool for static and dynamic domains
git clone https://git.parazyd.org/gitzone
Log | Files | Refs

commit 1ce40494640049c503499fe8711e071f3bad6ac5
parent 62cab6e61b084d5f51a167709cbfb621118ef94a
Author: tg(x) <*@tg-x.net>
Date:   Sun, 13 Feb 2011 16:25:21 +0100

gitzone-shell git

Diffstat:
Mbin/gitzone | 2+-
Mbin/gitzone-shell | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git 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 @@ -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