Skip to content

Commit

Permalink
Add extra prompt to enable/disable s3 gateway if user declines config…
Browse files Browse the repository at this point in the history
…uring it (#1617)

Fix #1612
  • Loading branch information
ChrisSchinnerl authored Oct 23, 2024
2 parents b86432d + 6cbad11 commit bc5d9dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/renterd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,9 @@ func setStoreConfig(cfg *config.Config) {
func setS3Config(cfg *config.Config) {
if !promptYesNo("Would you like to configure S3 settings?") {
return
} else if !promptYesNo("Would you like to enable the S3 gateway?") {
cfg.S3.Enabled = false
return
}

fmt.Println("")
Expand Down

0 comments on commit bc5d9dc

Please sign in to comment.