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:
parent
70cbfdc585
commit
c3e0733406
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,6 @@ func init() {
|
||||||
// Run is Caddy's main() function.
|
// Run is Caddy's main() function.
|
||||||
func Run() {
|
func Run() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
moveStorage() // TODO: This is temporary for the 0.9 release, or until most users upgrade to 0.9+
|
|
||||||
|
|
||||||
caddy.AppName = appName
|
caddy.AppName = appName
|
||||||
caddy.AppVersion = appVersion
|
caddy.AppVersion = appVersion
|
||||||
|
@ -92,6 +91,8 @@ func Run() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
moveStorage() // TODO: This is temporary for the 0.9 release, or until most users upgrade to 0.9+
|
||||||
|
|
||||||
// Set CPU cap
|
// Set CPU cap
|
||||||
err := setCPU(cpu)
|
err := setCPU(cpu)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue