generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.yaml
31 lines (28 loc) · 956 Bytes
/
install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: mydumper
pre_install_actions:
- |
#ddev-nodisplay
#ddev-description:Check for existing .ddev/mydumper/mydumper.cnf
if [ -f .ddev/mydumper/mydumper.cnf ]; then
echo "The logic from .ddev/mydumper/mydumper.cnf is moved to docker-compose.mydumper.yaml"
echo "Remove .ddev/mydumper/mydumper.cnf and run this command again"
exit 1
fi
- |
#ddev-nodisplay
#ddev-description:Check for db service
if ddev debug configyaml 2>/dev/null | grep omit_containers | grep -q db; then
echo "Unable to install the add-on because no db service was found"
exit 2
fi
- |
#ddev-nodisplay
#ddev-description:Check for correct database type
if [ ${DDEV_DATABASE_FAMILY:-} = "postgres" ]; then
echo "This add-on is not intended to use with PostreSQL database"
exit 3
fi
project_files:
- docker-compose.mydumper.yaml
- commands/mydumper
ddev_version_constraint: '>= v1.24.3'