Skip to content

Instantly share code, notes, and snippets.

@nickl-
Last active December 10, 2015 22:59
Show Gist options
  • Select an option

  • Save nickl-/4506556 to your computer and use it in GitHub Desktop.

Select an option

Save nickl-/4506556 to your computer and use it in GitHub Desktop.
#!/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