Added debug to find out what happens when it fails.
This commit is contained in:
@@ -20,6 +20,13 @@ change_config
|
||||
echo "/bin/su myuser -c 'ls config'> tmp/out 2> tmp/err"
|
||||
/bin/su myuser -c 'ls config'> tmp/out 2> tmp/err
|
||||
|
||||
echo "su reported:"
|
||||
echo "=== stdout ==="
|
||||
cat tmp/out
|
||||
echo "=== stderr ==="
|
||||
cat tmp/err
|
||||
echo "=============="
|
||||
|
||||
echo -n "Checking tmp/out..."
|
||||
diff -au data/ls.out tmp/out
|
||||
rm -f tmp/out
|
||||
|
||||
@@ -20,6 +20,13 @@ change_config
|
||||
echo "/bin/su -c pwd -p - myuser> tmp/out 2> tmp/err"
|
||||
/bin/su -c pwd -p - myuser> tmp/out 2> tmp/err
|
||||
|
||||
echo "su reported:"
|
||||
echo "=== stdout ==="
|
||||
cat tmp/out
|
||||
echo "=== stderr ==="
|
||||
cat tmp/err
|
||||
echo "=============="
|
||||
|
||||
echo -n "Checking tmp/out..."
|
||||
case "$(cat tmp/out)" in
|
||||
*/su/03)
|
||||
|
||||
Reference in New Issue
Block a user