Checking for existence of lock file before removing

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/2e391938
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/2e391938
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/2e391938

Branch: refs/heads/master
Commit: 2e391938bd0a79326f584ee10a6e10c08a1cdcca
Parents: 7e6b336
Author: anuruddhal <[email protected]>
Authored: Wed Mar 11 17:19:13 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Sat Mar 14 11:20:56 2015 +0530

----------------------------------------------------------------------
 tools/puppet3-agent/config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/2e391938/tools/puppet3-agent/config.sh
----------------------------------------------------------------------
diff --git a/tools/puppet3-agent/config.sh b/tools/puppet3-agent/config.sh
index 742155b..4ac4707 100755
--- a/tools/puppet3-agent/config.sh
+++ b/tools/puppet3-agent/config.sh
@@ -91,7 +91,7 @@ if [[ $answer = y ]] ; then
        /root/bin/puppetinstall/puppetinstall "${ARGS[@]}"
        #check for java agent lock file
        if [ -e ${LOCKFILE} ]; then
-    ${RM} ${LOCKFILE}
+       ${RM} ${LOCKFILE}
        fi
 
        ${GREP} -q '/root/bin/init.sh > /tmp/puppet_log' /etc/rc.local || 
${SED} -i 's/exit 0$/\/root\/bin\/init.sh \> \/tmp\/puppet_log\nexit 0/' 
/etc/rc.local

Reply via email to