Skip to content

Commit

Permalink
restrict to DDEV 1.23+
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler36 committed May 30, 2024
1 parent 29807c4 commit 91c2ad0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ project_files:
- xhgui/collector/xhgui.collector.php
- xhgui/nginx.conf

pre_install_actions:
# Ensure we're on DDEV 1.23+. It's need for the `xhgui` command (launch by port).
- |
#ddev-nodisplay
#ddev-description:Checking DDEV version
(ddev debug capabilities | grep corepack >/dev/null) || (echo "Please upgrade DDEV to v1.23+ to enable launching." && false)
removal_actions:
- if [[ "$DDEV_DATABASE_FAMILY" == "postgres" ]]; then ddev psql -U db -c "drop database xhgui"; fi
- if [[ "$DDEV_DATABASE_FAMILY" != "postgres" ]]; then ddev mysql -uroot -proot -e "DROP DATABASE IF EXISTS xhgui"; fi

0 comments on commit 91c2ad0

Please sign in to comment.