mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
fix migration from 0.3.5.1 (#10)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
@@ -11,10 +12,14 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
userServiceConfigSampleFilePath = "/etc/casaos/user-service.conf.sample"
|
||||
userServiceName = "casaos-user-service.service"
|
||||
userServiceConfigDirPath = "/etc/casaos"
|
||||
userServiceConfigFilePath = "/etc/casaos/user-service.conf"
|
||||
userServiceName = "casaos-user-service.service"
|
||||
)
|
||||
|
||||
//go:embedded ../../build/sysroot/etc/casaos/user-service.conf.sample
|
||||
var _userServiceConfigFileSample string
|
||||
|
||||
var _logger *Logger
|
||||
|
||||
func main() {
|
||||
@@ -24,7 +29,7 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
if *versionFlag {
|
||||
fmt.Println(common.Version)
|
||||
fmt.Printf("v%s\n", common.Version)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user