feat: output message explaining how to remove a deploy lock when a lock is encountered
This commit is contained in:
1 parent
745473322a
commit
26a3a8fd0a
1 file changed
+4
-1
@@ -1106,7 +1106,10 @@ acquire_advisory_lock() {
|
|||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user