fixed crashing when no config was found

This commit is contained in:
kolaente 2018-09-08 16:43:37 +02:00
parent 82c098aa0d
commit d48f3f9737
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 1 additions and 4 deletions

View file

@ -33,11 +33,8 @@ RUN apk --no-cache add \
su-exec \
tzdata
COPY docker /
COPY --from=build-env /go/src/code.vikunja.io/api/vikunja /app/vikunja/api
#RUN ln -s /app/vikunja/vikunja /usr/local/bin/vikunja
ENTRYPOINT ["/bin/s6-svscan", "/etc/services.d"]
CMD []

View file

@ -42,7 +42,7 @@ func InitConfig() (err error) {
fmt.Println("Using defaults.")
}
return
return nil
}
func random(length int) (string, error) {