fix: remove duplicate func as a result of rebase

This commit is contained in:
Jose Diaz-Gonzalez
2023-01-15 17:57:07 -05:00
parent e78fb84953
commit 0066b09405

View File

@@ -160,16 +160,6 @@ func TriggerPostCreate(appName string) error {
return common.CreateAppDataDirectory("app-json", appName)
}
// TriggerPostCreate ensures the app-json directory for the app is created
func TriggerPostCreate(appName string) error {
directory := filepath.Join(common.MustGetEnv("DOKKU_LIB_ROOT"), "data", "app-json", appName)
if err := os.MkdirAll(directory, 0755); err != nil {
return err
}
return common.SetPermissions(directory, 0755)
}
// TriggerPostDelete destroys the app-json data for a given app container
func TriggerPostDelete(appName string) error {
dataErr := os.RemoveAll(common.GetAppDataDirectory("app-json", appName))