Skip to content

Commit

Permalink
fix: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Nov 8, 2024
1 parent 258a66c commit cb5defb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/rollapp/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ func Cmd() *cobra.Command {
var env string
var raID string

err = servicemanager.StopSystemServices()
if err != nil {
pterm.Error.Println("failed to stop system services: ", err)
return
}

isRootExist, err := filesystem.DirNotEmpty(home)
if err != nil {
pterm.Error.Printf(
Expand Down Expand Up @@ -101,6 +95,12 @@ func Cmd() *cobra.Command {
}
}

err = servicemanager.StopSystemServices()
if err != nil {
pterm.Error.Println("failed to stop system services: ", err)
return
}

err = filesystem.CreateRollerRootWithOptionalOverride(home)
if err != nil {
pterm.Error.Printf(
Expand Down

0 comments on commit cb5defb

Please sign in to comment.