fix: use correct check for skipping a rebuild
This commit is contained in:
1 parent
d473c1635f
commit
c82c9562b6
1 file changed
+1
-1
@@ -31,7 +31,7 @@ apps_clone_cmd() {
|
|||||||
[[ -f "$DOKKU_ROOT/$NEW_APP/URLS" ]] && sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/URLS"
|
[[ -f "$DOKKU_ROOT/$NEW_APP/URLS" ]] && sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/URLS"
|
||||||
[[ -f "$DOKKU_ROOT/$NEW_APP/VHOST" ]] && sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/VHOST"
|
[[ -f "$DOKKU_ROOT/$NEW_APP/VHOST" ]] && sed -i -e "s/$OLD_APP/$NEW_APP/g" "$DOKKU_ROOT/$NEW_APP/VHOST"
|
||||||
[[ -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"
|
[[ -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"
|
||||||
[[ "$SKIP_REBUILD" == "false" ]] || ps_rebuild "$NEW_APP"
|
[[ "$SKIP_REBUILD" == "true" ]] || ps_rebuild "$NEW_APP"
|
||||||
plugn trigger post-app-clone "$OLD_APP" "$NEW_APP"
|
plugn trigger post-app-clone "$OLD_APP" "$NEW_APP"
|
||||||
echo "Cloning $OLD_APP to $NEW_APP... done"
|
echo "Cloning $OLD_APP to $NEW_APP... done"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user