Last active
July 7, 2017 08:17
-
-
Save appkr/51c28963508f8d26ba776a229d893824 to your computer and use it in GitHub Desktop.
Install PHP Modules on AWS EB PHP7 Base Image
This file contains hidden or 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
| files: | |
| /opt/elasticbeanstalk/hooks/appdeploy/pre/03_install_php_modules.sh: | |
| mode: "000755" | |
| owner: root | |
| group: root | |
| content: | | |
| #!/usr/bin/env bash | |
| set -xe | |
| if [ -f /root/.not-a-new-instance.txt ] | |
| then | |
| echo "Not a new instance. Skipping installation." | |
| exit 0 | |
| else | |
| echo "Installing PHP modules." | |
| yum install -y php70-gmp php70-zip | |
| touch /root/.not-a-new-instance.txt | |
| fi |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Case 3: Config Deploy