]> gitweb.fluxo.info Git - firma.git/commitdiff
fix on USER and GROUP evaluation
authorrhatto <rhatto>
Mon, 9 Oct 2006 13:24:02 +0000 (13:24 +0000)
committerrhatto <rhatto>
Mon, 9 Oct 2006 13:24:02 +0000 (13:24 +0000)
firma

diff --git a/firma b/firma
index c425921b96bd21149948e80775d364dbd205c02a..222094f7ca8728746cdabdbc9bb5e7528ce7963d 100755 (executable)
--- a/firma
+++ b/firma
@@ -186,10 +186,14 @@ WARNING: Setting LOG_TO_SYSLOG to '0'."
 
   if ! grep -q -e "^USER=" $FIRMA_CONFIG_FILE; then
     USER="nobody"
+  else
+    USER="`grep "^USER=" $FIRMA_CONFIG_FILE | sed -e 's/"//g' -e "s/'//g" | cut -d = -f 2`"
   fi
 
   if ! grep -q -e "^GROUP=" $FIRMA_CONFIG_FILE; then
     GROUP="nobody"
+  else
+    GROUP="`grep "^GROUP=" $FIRMA_CONFIG_FILE | sed -e 's/"//g' -e "s/'//g" | cut -d = -f 2`"
   fi
 
   return $return_code