Better SFTPGo installation
This commit is contained in:
parent
ae67dba4ea
commit
78e483d2a4
4 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 864f8688904a05d9af06a500395cbacb55850a22
|
||||
Subproject commit 13bfd8e9bef4814904ef7a642411fa43f4253df4
|
0
usr/local/bin/.gitkeep
Normal file → Executable file
0
usr/local/bin/.gitkeep
Normal file → Executable file
Loading…
Reference in a new issue