Revert "refactor: pass procfs location to docker_tls_args on command line"

changed my mind

This reverts commit be8260ae79.
This commit is contained in:
Matthias Radestock committed 2016-01-02 10:50:13 +00:00
1 parent 4a6b72c649
commit d59594c6b0
2 files changed
+6 -5

No files matched your search

+5 -4
View File
@@ -1,5 +1,6 @@
// docker_tls_args: find the docker daemon's tls args
// This reimplements pgrep, because pgrep will only look in /proc.
// This reimplements pgrep, because pgrep will only look in /proc, but not in
// $PROCFS.
package main
import (
@@ -13,9 +14,9 @@ import (
)
func main() {
procRoot := "/proc"
if len(os.Args) > 1 {
procRoot = os.Args[1]
procRoot := os.Getenv("PROCFS")
if procRoot == "" {
procRoot = "/proc"
}
dirEntries, err := ioutil.ReadDir(procRoot)