From c02db6f90796955ffd032207a6460f9c2798e0e8 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 31 May 2013 05:47:14 -0700 Subject: [PATCH] Add a nickname configuration variable --- Girocco/Config.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Girocco/Config.pm b/Girocco/Config.pm index e31d1f9..945d2e4 100644 --- a/Girocco/Config.pm +++ b/Girocco/Config.pm @@ -9,6 +9,9 @@ use warnings; # Name of the service our $name = "GiroccoEx"; +# Nickname of the service (undef for initial part of $name upto first '.') +our $nickname = undef; + # Title of the service (as shown in gitweb) our $title = "Example Girocco Hosting"; @@ -228,6 +231,7 @@ our $permission_control = 'Group'; our $fixup_queue = '/var/tmp/fixup.fifo'; # Couple of sanity checks +$nickname = (split(/[.]/, $Girocco::Config::name))[0] unless $nickname; ($mirror or $push) or die "Girocco::Config: neither \$mirror or \$push is set?!"; (not $push or ($pushurl or $gitpullurl or $httppullurl)) or die "Girocco::Config: no pull URL is set"; (not $push or $pushurl) or die "Girocco::Config: \$push set but \$pushurl is undef"; -- 2.11.4.GIT