changed system requirements reading

This commit is contained in:
Gustavo Iñiguez Goia 2023-05-18 14:32:03 +02:00
parent 8513c0dd7f
commit f3a621e192
Failed to generate hash of commit

View file

@ -5,7 +5,6 @@ import (
"fmt"
"io"
"io/ioutil"
"os"
"regexp"
"strings"
@ -48,7 +47,7 @@ func CheckSysRequirements() {
var fileContent []byte
var err error
if Exists(confFile) {
fileContent, err = os.ReadFile(confFile)
fileContent, err = ioutil.ReadFile(confFile)
} else {
confFile = "/proc/config.gz"
fileContent, err = ReadGzipFile(confFile)