forked from Elara6331/itd
Remove config version field
This commit is contained in:
parent
f1b7f70313
commit
fbb7cd9bc1
4
itd.toml
4
itd.toml
@ -1,7 +1,3 @@
|
|||||||
# This is temporary, it is to show a notice
|
|
||||||
# to people still using the old config
|
|
||||||
cfg.version = 2
|
|
||||||
|
|
||||||
[socket]
|
[socket]
|
||||||
path = "/tmp/itd/socket"
|
path = "/tmp/itd/socket"
|
||||||
|
|
||||||
|
4
main.go
4
main.go
@ -29,10 +29,6 @@ import (
|
|||||||
var firmwareUpdating = false
|
var firmwareUpdating = false
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if viper.GetInt("cfg.version") != 2 {
|
|
||||||
log.Fatal().Msg("Please update your config to the newest format, only v2 configs supported.")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Cleanly exit after function
|
// Cleanly exit after function
|
||||||
defer infinitime.Exit()
|
defer infinitime.Exit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user