BUGFIX on hostid reading : remove trailing \n
This commit is contained in:
parent
7dbbf8a757
commit
0f97270a6a
@ -24,6 +24,8 @@ func NewJailConfig() JailConfig {
|
||||
hostid, err := ioutil.ReadFile("/etc/hostid")
|
||||
if err != nil {
|
||||
hostid = []byte("12345678-abcd-ef98-7654-321012345678")
|
||||
} else {
|
||||
hostid = []byte(strings.Replace(string(hostid), "\n", "", -1))
|
||||
}
|
||||
|
||||
jc.Allow_chflags = 0
|
||||
|
Loading…
Reference in New Issue
Block a user