Skip to content

Commit

Permalink
Make Remote-Base-Directory functional for server
Browse files Browse the repository at this point in the history
Properly uses the Remote-Base-Directory to set the target
location for files on the FTP backend, e.g. if you set
`Remote-Base-Directory=gravwell`, your uploaded shards will
go to `/home/<username>/gravwell/` instead of just `/home/<username>/`

Addresses #6
  • Loading branch information
floren committed May 23, 2023
1 parent a22348b commit 027d53c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func main() {
fcfg := ftpstore.FtpStoreConfig{
LocalStore: cfg.Global.Storage_Directory,
FtpServer: cfg.Global.FTP_Server,
BaseDir: cfg.Global.Remote_Base_Directory,
Username: cfg.Global.FTP_Username,
Password: cfg.Global.FTP_Password,
Lgr: lgr,
Expand Down

0 comments on commit 027d53c

Please sign in to comment.