replace ioutil
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
18db59ad2d
commit
241059f56b
|
@ -2,7 +2,6 @@ package gounicorn
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
@ -142,7 +141,7 @@ func (g *GoUnicorn) Restart() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
newPidB, err := ioutil.ReadFile(newPidFile)
|
newPidB, err := os.ReadFile(newPidFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
g.log.WithError(err).Warning("failed to find the new gunicorn process, aborting")
|
g.log.WithError(err).Warning("failed to find the new gunicorn process, aborting")
|
||||||
return
|
return
|
||||||
|
|
Reference in a new issue