Substrata mechanical stiffness can regulate adhesion of viable bacteria.