Code

- Correcting bashism debian bug #530093
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Jun 2009 10:52:15 +0000 (10:52 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Jun 2009 10:52:15 +0000 (10:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13768 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/scripts/mailqueue

index be6c8726b742f80c314f9a6a3046bd7e68ef49bf..8b707a49b26fc198583b669f310cbd709debf189 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # Are we root?
-[ $UID -ne 0 ] && exit 1
+[ "$(id -ru)" -ne 0 ] && exit 1
 
 # Assign parameters
 [ $# -lt 3 ] && exit 2