Skip to content

Commit

Permalink
fix script names
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jan 11, 2024
1 parent e44fd36 commit a688afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (a *AppServer) apiSystemFsStatus(c *fiber.Ctx) (err error) {

func (a *AppServer) apiSystemRollbackSnapshot(c *fiber.Ctx) (err error) {

_, err = models.RunCommand("calaos_rollback.sh")
_, err = models.RunCommand("calaos_rollback")
if err != nil {
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{
"error": true,
Expand Down Expand Up @@ -135,7 +135,7 @@ func (a *AppServer) apiSystemInstallStart(c *fiber.Ctx) (err error) {
})
}

r, err := models.RunCommandReader("calaos_install.sh", INSTALL_LOG_FILE, INSTALL_EXIT_CODE_FILE, n.Device)
r, err := models.RunCommandReader("calaos_install", INSTALL_LOG_FILE, INSTALL_EXIT_CODE_FILE, n.Device)
if err != nil {
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{
"error": true,
Expand Down

0 comments on commit a688afa

Please sign in to comment.