diff --git a/install/sftpgo.sh b/install/sftpgo.sh index b4cfe4e..a2b23ff 100644 --- a/install/sftpgo.sh +++ b/install/sftpgo.sh @@ -23,3 +23,6 @@ chmod u=r,g=,o= /etc/sftpgo/ed25519 # For systemd cp /install/sftpgo.service /etc/systemd/system/ systemctl enable sftpgo + +# Allow listening on privileged ports +setcap 'cap_net_bind_service=+ep' /usr/local/bin/sftpgo diff --git a/root/sftpgo.sh b/root/sftpgo.sh index 5a20279..173a048 100644 --- a/root/sftpgo.sh +++ b/root/sftpgo.sh @@ -13,3 +13,5 @@ cp -r openapi ./internal/bundle/openapi cp -r templates ./internal/bundle/templates cp -r static ./internal/bundle/static $GO build -tags nogcs,nos3,noazblob,nobolt,nomysql,nopgsql,nosqlite,noportable,nometrics,bundle -o /usr/local/bin/sftpgo + +strip /usr/local/bin/sftpgo diff --git a/srv/servnest/core b/srv/servnest/core index 864f868..13bfd8e 160000 --- a/srv/servnest/core +++ b/srv/servnest/core @@ -1 +1 @@ -Subproject commit 864f8688904a05d9af06a500395cbacb55850a22 +Subproject commit 13bfd8e9bef4814904ef7a642411fa43f4253df4 diff --git a/usr/local/bin/.gitkeep b/usr/local/bin/.gitkeep old mode 100644 new mode 100755