0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Only move storage if actually starting a server (closes #1067)

This commit is contained in:
Matthew Holt 2016-08-23 22:32:52 -06:00
parent 70cbfdc585
commit c3e0733406
No known key found for this signature in database
GPG key ID: 0D97CC73664F4D03

View file

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