more install fixes

This commit is contained in:
Chris Wanstrath 2025-09-26 11:33:45 -07:00
parent e4d5b693ea
commit 8d23a77ddc

View File

@ -14,6 +14,7 @@ BUN_REAL="$HOME/.bun/bin/bun"
echo ">> Updating system libraries"
sudo apt-get update
sudo apt-get install -y libcap2-bin
sudo apt-get install -y avahi-utils
echo ">> Ensuring bun is available in /usr/local/bin"
if [ ! -x "$BUN_SYMLINK" ]; then
@ -33,7 +34,7 @@ fi
echo ">> Setting CAP_NET_BIND_SERVICE on $BUN_REAL"
sudo setcap 'cap_net_bind_service=+ep' "$BUN_REAL"
getcap "$BUN_REAL" || true
/usr/sbin/getcap "$BUN_REAL" || true
echo ">> Installing systemd unit to $SYSTEMD_PATH"
sudo cp "$SERVICE_FILE" "$SYSTEMD_PATH"