Skip to content

Commit

Permalink
Fix boltdb
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvbeek committed Feb 2, 2022
1 parent 2f99238 commit 8c7aded
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ nfpms:
- src: scripts/settings.toml
dst: /etc/librespeed-go/settings.toml
type: config
- src: scripts/librespeed-go.db
dst: /var/lib/librespeed-go/librespeed-go.db
type: noreplace
file_info:
owner: librespeed
group: librespeed
mode: 0600
formats:
- deb
- rpm
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/librespeed/speedtest
go 1.16

require (
github.com/breml/rootcerts v0.2.1
github.com/breml/rootcerts v0.2.2
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
github.com/go-chi/chi/v5 v5.0.7
github.com/go-chi/cors v1.2.0
Expand All @@ -21,5 +21,5 @@ require (
github.com/umahmood/haversine v0.0.0-20151105152445-808ab04add26
go.etcd.io/bbolt v1.3.6
golang.org/x/image v0.0.0-20211028202545-6944b10bf410
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 // indirect
)
6 changes: 5 additions & 1 deletion scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
adduser --quiet --system --home /var/lib/librespeed-go --no-create-home \
--group --gecos "LibreSpeed-Go" librespeed

touch /var/lib/librespeed-go/librespeed-go.db
chown -R librespeed:librespeed /var/lib/librespeed-go/
chmod 0600 /var/lib/librespeed-go/librespeed-go.db

systemctl daemon-reload
systemctl enable librespeed-go
systemctl start librespeed-go
systemctl start librespeed-go

0 comments on commit 8c7aded

Please sign in to comment.