From 2a94bf267bfe1bad307c94a9813b28810d8461e5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 4 Jan 2016 04:40:05 -0500 Subject: [PATCH 1/2] Fix pre-receive git-hook Closes #1817 --- plugins/apps/commands | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/apps/commands b/plugins/apps/commands index 1cea6b0f1..649ca899e 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/$OLD_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" From 244bb25e6ab38aa30fbc54caf0dc5a2793452f5d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 4 Jan 2016 05:20:05 -0500 Subject: [PATCH 2/2] Fix variable reference --- plugins/apps/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/apps/commands b/plugins/apps/commands index 649ca899e..be556894b 100755 --- a/plugins/apps/commands +++ b/plugins/apps/commands @@ -27,7 +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/$OLD_APP/hooks/pre-receive" + 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"