Skip to content

Commit

Permalink
Fix uninstall of config.hooks.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bserem committed Sep 30, 2024
1 parent b919213 commit 3b24662
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ removal_actions:
- rm settings.local.devmodeOFF.php
- rm -rf scripts
- |
if [ -f ${DDEV_APPROOT}/.ddev/config.hooks.yaml then
if grep -q '#ddev-generated' ${DDEV_APPROOT}/.ddev/config.hooks.yaml; then
rm -f ${DDEV_APPROOT}/.ddev/config.hooks.yaml
echo "Unwilling to remove '${DDEV_APPROOT}/.ddev/config.hooks.yaml' because it does not have #ddev-generated in it; you can manually delete it if it is safe to delete."
if [ -f ${DDEV_APPROOT}/config.hooks.yaml ]; then
if grep -q '#ddev-generated' ${DDEV_APPROOT}/config.hooks.yaml; then
rm -f ${DDEV_APPROOT}/config.hooks.yaml
echo "Unwilling to remove '${DDEV_APPROOT}/config.hooks.yaml' because it does not have #ddev-generated in it; you can manually delete it if it is safe to delete."
fi
fi
Expand Down

0 comments on commit 3b24662

Please sign in to comment.