From 04bd0e1ea171d8c4a6dc9487e6d885c31d201174 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 19 May 2018 02:13:47 +0000 Subject: [PATCH] try and make the lock wrapper silent option actually silent --- roles/base/files/common-scripts/lock-wrapper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/base/files/common-scripts/lock-wrapper b/roles/base/files/common-scripts/lock-wrapper index f0535778bc..abec9f3f1f 100755 --- a/roles/base/files/common-scripts/lock-wrapper +++ b/roles/base/files/common-scripts/lock-wrapper @@ -22,8 +22,8 @@ function cleanup { RESTORE_UMASK=$(umask -p) umask 0077 -if ! mkdir "$LOCKDIR"; then - echo "$LOCKDIR already exists" +mkdir "$LOCKDIR" >& /dev/null +if [ $? != 0 ]; then PID=$(cat "$PIDFILE") if [ -n "$PID" ] && /bin/ps $PID > /dev/null then