fix: do not delete the existing procfile if it does not exist

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-11-25 14:50:35 -05:00
1 parent 231e562b8d
commit 0857e51c43
1 file changed
+2
+2
View File
@@ -35,10 +35,12 @@ func TriggerCorePostDeploy(appName string) error {
return err return err
} }
if common.FileExists(existingProcfile) {
if err := os.Remove(existingProcfile); err != nil { if err := os.Remove(existingProcfile); err != nil {
return err return err
} }
} }
}
entries := map[string]string{ entries := map[string]string{
"DOKKU_APP_RESTORE": "1", "DOKKU_APP_RESTORE": "1",