diff --git a/plugins/apps/commands b/plugins/apps/commands index 1cea6b0f143..be556894bda 100755 --- a/plugins/apps/commands +++ b/plugins/apps/commands @@ -27,6 +27,7 @@ case "$1" in dokku apps:destroy $OLD_APP --force sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/URLS" sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/VHOST" + sed -i -e "s/git-hook $OLD_APP/git-hook $NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/hooks/pre-receive" dokku ps:rebuild $NEW_APP plugn trigger post-app-rename $OLD_APP $NEW_APP echo "Renaming $OLD_APP to $NEW_APP... done"