commands: Replace deprecated ioutil with os - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2589b1295cce53f7bb83cfe2074b0b272eb57217
 (DIR) parent ef6e813ca8e185bfb9c629e76380647394cd296f
 (HTM) Author: Oleksandr Redko <Oleksandr_Redko@epam.com>
       Date:   Fri, 28 Jul 2023 11:23:20 +0300
       
       commands: Replace deprecated ioutil with os
       
       
       Diffstat:
         M commands/server.go                  |       5 ++---
       
       1 file changed, 2 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/commands/server.go b/commands/server.go
       @@ -23,7 +23,6 @@ import (
                "errors"
                "fmt"
                "io"
       -        "io/ioutil"
                "net"
                "net/http"
                "net/url"
       @@ -686,9 +685,9 @@ func (c *serverCommand) createCertificates(conf *commonConfig) error {
                c.tlsKeyFile = filepath.Join(keyDir, fmt.Sprintf("%s-key.pem", hostname))
        
                // Check if the certificate already exists and is valid.
       -        certPEM, err := ioutil.ReadFile(c.tlsCertFile)
       +        certPEM, err := os.ReadFile(c.tlsCertFile)
                if err == nil {
       -                rootPem, err := ioutil.ReadFile(filepath.Join(mclib.GetCAROOT(), "rootCA.pem"))
       +                rootPem, err := os.ReadFile(filepath.Join(mclib.GetCAROOT(), "rootCA.pem"))
                        if err == nil {
                                if err := c.verifyCert(rootPem, certPEM, hostname); err == nil {
                                        c.r.Println("Using existing", c.tlsCertFile, "and", c.tlsKeyFile)