SVN: rc-scripts/trunk/run-parts
glen
glen at pld-linux.org
Wed Oct 29 09:54:36 CET 2008
Author: glen
Date: Wed Oct 29 09:54:36 2008
New Revision: 9927
Modified:
rc-scripts/trunk/run-parts
Log:
- rip out -u <runas_user> -- it's bad concept and nothing should be using it anyway
Modified: rc-scripts/trunk/run-parts
==============================================================================
--- rc-scripts/trunk/run-parts (original)
+++ rc-scripts/trunk/run-parts Wed Oct 29 09:54:36 2008
@@ -15,11 +15,6 @@
# keep going when something fails
set +e
-if [ "$1" = "-u" ]; then
- workasuser=yes
- shift
-fi
-
if [ "$1" = "--test" ]; then
test=yes
shift
@@ -73,11 +68,6 @@
echo "$runprog"
continue
fi
- if [ "$workasuser" = "yes" ]; then
- runuser="$(/bin/ls -l "$i" | awk ' { print $3 } ' 2> /dev/null)"
- [ -z "$runuser" ] && echo "Warning: Can't find owner for [$i] file. Not running." && continue
- runprog="/bin/su $runuser -s /bin/sh -c $runprog"
- fi
$runprog 2>&1 | awk -v "progname=$i" \
'progname {
print progname ":\n"
@@ -88,6 +78,3 @@
done
exit 0
-
-# This must be last line !
-# vi:syntax=sh
More information about the pld-cvs-commit
mailing list