From 6a96d1e45023f4b1bd080823e5e9b6d7279f08f2 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 28 Apr 2013 00:17:20 -0700 Subject: [PATCH] Also create $reporoot-recyclebin at install time --- Girocco/Config.pm | 1 + install.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Girocco/Config.pm b/Girocco/Config.pm index ce06002..e31d1f9 100644 --- a/Girocco/Config.pm +++ b/Girocco/Config.pm @@ -69,6 +69,7 @@ our $min_gc_interval = 604800; # 1 week our $basedir = '/home/repo/repomgr'; # The repository collection +# "$reporoot-recyclebin" will also be created for use by toolbox/trash-project.pl our $reporoot = "/srv/git"; # The chroot for ssh pushing; location for project database and other run-time diff --git a/install.sh b/install.sh index d92528c..80adc30 100755 --- a/install.sh +++ b/install.sh @@ -48,11 +48,13 @@ echo "*/30 * * * * /usr/bin/nice -n 18 $cfg_basedir/jobd/jobd.sh -q --all-once" echo "*** Setting up repository root..." -mkdir -p "$cfg_reporoot" +mkdir -p "$cfg_reporoot" "$cfg_reporoot-recyclebin" if [ "$cfg_owning_group" ]; then chown :"$cfg_owning_group" "$cfg_reporoot" || echo "WARNING: Cannot chgrp $cfg_owning_group $cfg_reporoot" + chown :"$cfg_owning_group" "$cfg_reporoot-recyclebin" || echo "WARNING: Cannot chgrp $cfg_owning_group $cfg_reporoot-recyclebin" fi chmod 02775 "$cfg_reporoot" || echo "WARNING: Cannot chmod $cfg_reporoot properly" +chmod 02775 "$cfg_reporoot-recyclebin" || echo "WARNING: Cannot chmod $cfg_reporoot-recyclebin properly" if [ -n "$cfg_chrooted" ]; then -- 2.11.4.GIT