Better SFTPGo installation
This commit is contained in:
parent
ae67dba4ea
commit
78e483d2a4
|
@ -23,3 +23,6 @@ chmod u=r,g=,o= /etc/sftpgo/ed25519
|
||||||
# For systemd
|
# For systemd
|
||||||
cp /install/sftpgo.service /etc/systemd/system/
|
cp /install/sftpgo.service /etc/systemd/system/
|
||||||
systemctl enable sftpgo
|
systemctl enable sftpgo
|
||||||
|
|
||||||
|
# Allow listening on privileged ports
|
||||||
|
setcap 'cap_net_bind_service=+ep' /usr/local/bin/sftpgo
|
||||||
|
|
|
@ -13,3 +13,5 @@ cp -r openapi ./internal/bundle/openapi
|
||||||
cp -r templates ./internal/bundle/templates
|
cp -r templates ./internal/bundle/templates
|
||||||
cp -r static ./internal/bundle/static
|
cp -r static ./internal/bundle/static
|
||||||
$GO build -tags nogcs,nos3,noazblob,nobolt,nomysql,nopgsql,nosqlite,noportable,nometrics,bundle -o /usr/local/bin/sftpgo
|
$GO build -tags nogcs,nos3,noazblob,nobolt,nomysql,nopgsql,nosqlite,noportable,nometrics,bundle -o /usr/local/bin/sftpgo
|
||||||
|
|
||||||
|
strip /usr/local/bin/sftpgo
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 864f8688904a05d9af06a500395cbacb55850a22
|
Subproject commit 13bfd8e9bef4814904ef7a642411fa43f4253df4
|
Loading…
Reference in New Issue