Revert "Move crio default sock to /var/run/crio/crio.sock"
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
3be3936d7d
commit
b0e9f0eba8
8 changed files with 7 additions and 12 deletions
|
@ -8,7 +8,6 @@ import (
|
|||
_ "net/http/pprof"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
|
@ -420,10 +419,6 @@ func main() {
|
|||
return fmt.Errorf("invalid --runtime value %q", err)
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(filepath.Dir(config.Listen), 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Remove the socket if it already exists
|
||||
if _, err := os.Stat(config.Listen); err == nil {
|
||||
if err := os.Remove(config.Listen); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue