Last active
December 10, 2015 22:59
-
-
Save nickl-/4506556 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| function make_php_ini() { | |
| continue_after 5 "Config ini" && return | |
| if [[ -n "$DEFAULT_INI" ]]; then | |
| if [[ -f "$PREFIX/$DEFAULT_INI" ]]; then | |
| cp "$PREFIX/$DEFAULT_INI" "$PREFIX/etc/php.ini" | |
| else | |
| if [[ -f "$DEFAULT_INI" ]]; then | |
| cp "$DEFAULT_INI" "$PREFIX/etc/php.ini" | |
| fi | |
| fi | |
| fi | |
| log "Config ini" "appending add-on extention configuration to php.ini" | |
| cat "$PHPENV_ROOT/etc/ext"/* >> "$PREFIX/etc/php.ini" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment