]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- rip out -u <runas_user> -- it's bad concept and nothing should be using it anyway
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 29 Oct 2008 08:54:36 +0000 (08:54 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 29 Oct 2008 08:54:36 +0000 (08:54 +0000)
svn-id: @9927

run-parts

index e67c5033064c5616a72f08185d337800a143e7b4..8b473a599fafb6ea0dac8725efa484797bcb759a 100755 (executable)
--- a/run-parts
+++ b/run-parts
 # 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 @@ for i in $RUNPARTS_DIR/*[!~,] ; do
                        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 @@ for i in $RUNPARTS_DIR/*[!~,] ; do
 done
 
 exit 0
-
-# This must be last line !
-# vi:syntax=sh
This page took 0.04064 seconds and 4 git commands to generate.