Merge pull request #4687 from dokku/4649-apps-unlock-note

Output message explaining how to remove a deploy lock when a lock is encountered
This commit is contained in:
Jose Diaz-Gonzalez
2021-07-11 22:20:50 -04:00
committed by GitHub

View File

@@ -1106,7 +1106,10 @@ acquire_advisory_lock() {
sleep 1
done
else
flock -n "$LOCK_FD" &>/dev/null || dokku_log_fail "$LOCK_FAILED_MSG"
if ! flock -n "$LOCK_FD" &>/dev/null; then
dokku_log_warn "$LOCK_FAILED_MSG"
dokku_log_fail "Run 'apps:unlock' to release the existing deploy lock"
fi
fi
}