From 73ba1900e665e2547e1f3358f1f865f2df9f55be Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 13 Jan 2020 23:15:13 +0000 Subject: [PATCH] lock_wrapper: handle --silent with the argument passing Signed-off-by: Kevin Fenzi --- roles/base/files/common-scripts/lock-wrapper | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/base/files/common-scripts/lock-wrapper b/roles/base/files/common-scripts/lock-wrapper index a2fb155985..33950ac2e8 100755 --- a/roles/base/files/common-scripts/lock-wrapper +++ b/roles/base/files/common-scripts/lock-wrapper @@ -11,8 +11,11 @@ SCRIPT=$2 SILENT="no" if [ $# -ge 3 -a "$3" == "--silent" ]; then SILENT="yes" + shift fi +shift 2 + LOCKDIR="/var/tmp/$NAME" PIDFILE="$LOCKDIR/pid"