Skip to content

Commit

Permalink
handle unmounted cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
thelolagemann authored Dec 12, 2024
1 parent 06df3da commit bbab1b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ type config struct {
func openConfig() (*config, error){
f, err := os.Open(configLocation)
if err != nil {
return nil, err
f, err = os.Open("/usr/local/bin/config.json")
if err != nil {
return nil, err
}
}
b, err := io.ReadAll(f)
if err != nil {
Expand Down

0 comments on commit bbab1b1

Please sign in to comment.