Running same hook for deployment and configuration deployment
Solution 1:
The easiest way I found to do such a thing is to simply call the first script from the second one.
.platform
├── hooks
│ └── prebuild
│ ├── 00_hookname.sh
│ ├── 01_hookname.sh
│ └── 99_basic_auth.sh
├── confighooks
│ └── prebuild
│ └── 99_basic_auth.sh
└── httpd
└── conf.d
└── elasticbeanstalk
├── directory.conf
├── hardening.conf
└── headers.conf
Where the content of .platform/confighooks/prebuild/99_basic_auth.sh
is:
#!/bin/bash
set -e
/bin/bash "/var/app/current/.platform/hooks/prebuild/99_basic_auth.sh"