v0.36c: Moved and renamed writeConfigToDisk into utils.go
This commit is contained in:
@ -1365,7 +1365,7 @@ func StartJail(args []string) {
|
||||
}
|
||||
|
||||
// Synchronize jail config to disk
|
||||
WriteConfigToDisk(cj, false)
|
||||
writeConfigToDisk(cj, false)
|
||||
|
||||
start_cmd := fmt.Sprintf("/usr/sbin/jail -f /var/run/jail.%s.conf -c", cj.InternalName)
|
||||
|
||||
@ -1516,7 +1516,7 @@ func StartJail(args []string) {
|
||||
dt := time.Now()
|
||||
curDate := fmt.Sprintf("%s", dt.Format("2006-01-02 15:04:05"))
|
||||
cj.Config.Last_started = curDate
|
||||
WriteConfigToDisk(cj, false)
|
||||
writeConfigToDisk(cj, false)
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user