From 20eaa56f9b73fcc472e7eece13f21d59f91129e0 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 25 Jul 2008 18:22:19 +0200 Subject: [PATCH] update-hook: Use shlib.sh instead of custom perl hunk --- update-hook | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/update-hook b/update-hook index 9e82949..ebf26bf 100755 --- a/update-hook +++ b/update-hook @@ -30,9 +30,7 @@ fi # We are NOT inside the chroot -# Import all the variables from Girocco::Config to the local environment, -# prefixing them with 'cfg_'. E.g. $cfg_admin is admin's mail address now. -eval $(perl -I"$basedir" -MGirocco::Config -le 'foreach (keys %Girocco::Config::) { print "cfg_$_=\"".quotemeta(${$Girocco::Config::{$_}})."\""; }') +. "$basedir"/jobs/shlib.sh if [ "$cfg_permission_control" = "Hooks" ]; then # We have some permission control to do! -- 2.11.4.GIT