refactor: move all golang code for managing data directories to common plugin
Additionally, ensure the golang plugins handle setup/teardown of plugin and app-specific data directories during install, rename, and clone phases.
This commit is contained in:
1 parent
38fdb87c79
commit
6cbe93c245
14 files changed
+153
-47
No files matched your search
@@ -104,7 +104,7 @@ func CommandRestore(appName string, allApps bool, parallelCount int) error {
|
||||
|
||||
// CommandRetire ensures old containers are retired
|
||||
func CommandRetire(appName string) error {
|
||||
lockFile := filepath.Join(common.MustGetEnv("DOKKU_LIB_ROOT"), "data", "ps", "retire")
|
||||
lockFile := filepath.Join(common.GetDataDirectory("ps"), "retire")
|
||||
scheduler := ""
|
||||
if appName == "" {
|
||||
scheduler = common.GetGlobalScheduler()
|
||||
|
||||
Reference in new issue
Block a user