Revert "Move crio default sock to /var/run/crio/crio.sock"

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-10-18 16:33:58 -07:00
parent 3be3936d7d
commit b0e9f0eba8
8 changed files with 7 additions and 12 deletions

View file

@ -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 {