Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix rpi-install shared-libs/setcap conflict for non-root user #622

Merged
merged 5 commits into from
Sep 6, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions scripts/pi-arm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ rm server-linux-armv6.tar.bz2
# allow albyhub to bind on port 80
sudo setcap CAP_NET_BIND_SERVICE=+eip /opt/albyhub/bin/albyhub

# Use port 80 if available otherwise 8029
if sudo lsof -Pi :80 -sTCP:LISTEN -t >/dev/null ; then
PORT=8029
URL="http://$HOSTNAME.local:8029"
else
PORT=80
URL="http://$HOSTNAME.local"
fi
echo "/opt/albyhub/lib" | sudo tee -a /etc/ld.so.conf.d/albyhub.conf
frnandu marked this conversation as resolved.
Show resolved Hide resolved
sudo ldconfig

PORT=80
URL="http://$HOSTNAME.local"

### Create systemd service
sudo tee /etc/systemd/system/albyhub.service > /dev/null << EOF
Expand Down
Loading