From c3e07334062cfcfcb80c0180eb6240cd0ada8b4f Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 23 Aug 2016 22:32:52 -0600 Subject: [PATCH] Only move storage if actually starting a server (closes #1067) --- caddy/caddymain/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/caddy/caddymain/run.go b/caddy/caddymain/run.go index e83ecc17..b40c49b1 100644 --- a/caddy/caddymain/run.go +++ b/caddy/caddymain/run.go @@ -48,7 +48,6 @@ func init() { // Run is Caddy's main() function. func Run() { flag.Parse() - moveStorage() // TODO: This is temporary for the 0.9 release, or until most users upgrade to 0.9+ caddy.AppName = appName caddy.AppVersion = appVersion @@ -92,6 +91,8 @@ func Run() { os.Exit(0) } + moveStorage() // TODO: This is temporary for the 0.9 release, or until most users upgrade to 0.9+ + // Set CPU cap err := setCPU(cpu) if err != nil {