From c8f70ced7bca44b0ca5b352a8fa9ead4e25e6bff Mon Sep 17 00:00:00 2001 From: Tynan McAuley <16469394+tymcauley@users.noreply.github.com> Date: Wed, 17 Oct 2018 10:03:07 -0400 Subject: [PATCH] Add setcap installation to Debian. --- xo-install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xo-install.sh b/xo-install.sh index 79aff88..716c2a7 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -140,6 +140,14 @@ function InstallDependenciesDebian { echo "done" fi + # install setcap for non-root port binding if missing + if [[ -z $(which setcap) ]]; then + echo + echo -n "Installing setcap..." + apt-get install -y libcap2-bin >/dev/null + echo "done" + fi + # only install yarn repo and package if not found if [[ -z $(dpkg -l | grep yarn) ]]; then echo