aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 17:46:44 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-03-29 17:46:44 +0000
commit0fc0ce3e353bba96cb46d1589a3cf1cc2f932209 (patch)
treea5faad09f678466001f40385118e56ac81fccddc
parentb149acb22b52d39f53b5d45e18779ad16eeee624 (diff)
downloadrpm-helper-0fc0ce3e353bba96cb46d1589a3cf1cc2f932209.tar
rpm-helper-0fc0ce3e353bba96cb46d1589a3cf1cc2f932209.tar.gz
rpm-helper-0fc0ce3e353bba96cb46d1589a3cf1cc2f932209.tar.bz2
rpm-helper-0fc0ce3e353bba96cb46d1589a3cf1cc2f932209.tar.xz
rpm-helper-0fc0ce3e353bba96cb46d1589a3cf1cc2f932209.zip
don't silent stderr output
-rwxr-xr-xadd-group4
-rwxr-xr-xadd-service2
-rwxr-xr-xadd-user2
-rwxr-xr-xcreate-ssl-certificate2
-rwxr-xr-xdel-service2
5 files changed, 6 insertions, 6 deletions
diff --git a/add-group b/add-group
index 406062f..2867c90 100755
--- a/add-group
+++ b/add-group
@@ -20,7 +20,7 @@ num=$2 # number of packages installed
name=$3 # name of the group
users=$4 # users to add to this group
-/usr/sbin/groupadd -r $name > /dev/null 2>&1
+/usr/sbin/groupadd -r $name > /dev/null
if [ -n "$users" ]; then
SAVED_IFS="$IFS"
@@ -33,7 +33,7 @@ if [ -n "$users" ]; then
if [ -n "$old" ]; then
old=`echo ",$old" | sed 's/ /,/g'`
fi
- /usr/sbin/usermod -G $name$old $u > /dev/null 2>&1
+ /usr/sbin/usermod -G $name$old $u > /dev/null
done
fi
diff --git a/add-service b/add-service
index b208ba7..f42907a 100755
--- a/add-service
+++ b/add-service
@@ -84,7 +84,7 @@ else
# restart the service if already running
if [ -f /var/lock/subsys/$srv ]; then
- /sbin/service $srv restart > /dev/null 2>/dev/null || :
+ /sbin/service $srv restart > /dev/null || :
fi
fi
diff --git a/add-user b/add-user
index 7fed371..563b105 100755
--- a/add-user
+++ b/add-user
@@ -21,7 +21,7 @@ name=$3 # name of the user
dir=$4 # home directory
shell=$5 # shell
-/usr/sbin/useradd -r -M -s $shell -d $dir -c "system user for $pkg" $name > /dev/null 2>&1
+/usr/sbin/useradd -r -M -s $shell -d $dir -c "system user for $pkg" $name > /dev/null
exit 0
diff --git a/create-ssl-certificate b/create-ssl-certificate
index 1be9435..2d4c471 100755
--- a/create-ssl-certificate
+++ b/create-ssl-certificate
@@ -62,7 +62,7 @@ EOF
openssl req -new -x509 -days $CERT_DAYS \
-config $conffile \
-keyout $keyfile \
- -out $certfile >/dev/null 2>&1
+ -out $certfile >/dev/null
# enforce strict perms on key
if [ -n "$group" ]; then
diff --git a/del-service b/del-service
index cc26eb0..f13aea6 100755
--- a/del-service
+++ b/del-service
@@ -20,7 +20,7 @@ num=$2 # number of packages installed
srv=$3 # name of the service
if [ $num = 0 ]; then
- /sbin/service $srv stop > /dev/null 2>/dev/null || :
+ /sbin/service $srv stop > /dev/null || :
/sbin/chkconfig --del $srv
fi