generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christian Fritsch
committed
Jun 28, 2024
1 parent
3151178
commit d710db9
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
#ddev-generated | ||
|
||
## Description: Run the config_inspector module to check for invalid configuration in the site. | ||
## Usage: config-inspector | ||
## Example: ddev config-inspector | ||
|
||
# Check if the config_inspector module is enabled | ||
if ! drush pm:list --type=module --status=enabled | grep -q "config_inspector"; then | ||
echo "The config_inspector module is not enabled. Please enable it first." | ||
echo "Run 'ddev drush en config_inspector' to enable the module." | ||
exit 1 | ||
fi | ||
|
||
if [ -f "${DDEV_COMPOSER_ROOT}"/config_inspector-baseline.json ]; then | ||
echo "Using baseline file: ${DDEV_COMPOSER_ROOT}/config_inspector-baseline.json" | ||
drush config:inspect --baseline="${DDEV_COMPOSER_ROOT}"/config_inspector-baseline.json --only-error --detail | ||
else | ||
drush config:inspect --only-error --detail | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
#ddev-generated | ||
|
||
## Description: Check the compatibility of your site with the next major version of Drupal. | ||
## Usage: upgrade-status | ||
## Example: ddev upgrade-status | ||
|
||
# Check if the upgrade_status module is enabled | ||
if ! drush pm:list --type=module --status=enabled | grep -q "upgrade_status"; then | ||
echo "The upgrade_status module is not enabled. Please enable it first." | ||
echo "Run 'ddev drush en upgrade_status' to enable the module." | ||
exit 1 | ||
fi | ||
|
||
drush upgrade_status:analyze --ignore-contrib --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters