Patch of previous commit: ca_reset plugin

This commit is contained in:
Olof hagsand 2023-02-02 16:07:35 +01:00
parent 3d64eddaf2
commit 5da8ce211a

View file

@ -905,13 +905,8 @@ main(int argc,
goto done; goto done;
case SM_NONE: /* Fall through * case SM_NONE: /* Fall through *
* Load plugins and call plugin_init() */ * Load plugins and call plugin_init() */
if (xmldb_db_reset(h, "tmp") < 0) if ((ret = startup_extraxml(h, NULL, cbret)) < 0)
goto done; goto done;
if (clixon_plugin_reset_all(h, "tmp") < 0)
goto done;
/* Copy tmp to running after reset where extra xml may have been introduced */
if (xmldb_copy(h, "tmp", "running") < 0)
goto done;
status = STARTUP_OK; status = STARTUP_OK;
break; break;
case SM_RUNNING: /* Use running as startup */ case SM_RUNNING: /* Use running as startup */