feat: scope cleanup to app when specified

This will require changes in community plugins to properly add the specified labels to intermediate containers.

Closes #3515
This commit is contained in:
Jose Diaz-Gonzalez committed 2019-07-19 15:45:43 -04:00
1 parent d1af10fc51
commit 193e40b4c3
4 files changed
+69 -18

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ apps_rename_cmd() {
[[ -f "$DOKKU_ROOT/$NEW_APP/hooks/pre-receive" ]] && sed -i -e "s/git-hook $OLD_APP/git-hook $NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/hooks/pre-receive"
ps_rebuild "$NEW_APP"
plugn trigger post-app-rename "$OLD_APP" "$NEW_APP"
docker_cleanup "$OLD_APP" "true"
echo "Renaming $OLD_APP to $NEW_APP... done"
}