diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:55:03 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:55:03 (GMT) |
commit | 00b131694e084a6deb9caaca2d940c63b9990384 (patch) | |
tree | 08110bb4b818e23658ca7c64551d5ac83ff50ed1 /abs/core/php/php.install | |
parent | ff0f7cee2dc2b420e257313fef663a3f78bbc800 (diff) | |
download | linhes_pkgbuild-00b131694e084a6deb9caaca2d940c63b9990384.zip linhes_pkgbuild-00b131694e084a6deb9caaca2d940c63b9990384.tar.gz linhes_pkgbuild-00b131694e084a6deb9caaca2d940c63b9990384.tar.bz2 |
php: 5.4.5
Diffstat (limited to 'abs/core/php/php.install')
-rw-r--r-- | abs/core/php/php.install | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/abs/core/php/php.install b/abs/core/php/php.install deleted file mode 100644 index b040032..0000000 --- a/abs/core/php/php.install +++ /dev/null @@ -1,75 +0,0 @@ -post_install() { - # change mysql.default_socket for mythweb - sed -i 's/^mysql.default_socket.*$/mysql.default_socket = \/var\/run\/mysqld\/mysqld.sock/g' /etc/php/php.ini - if [ -f /etc/systemconfig ] - then - . /etc/systemconfig - if [ -f /etc/php/php.ini ] - then - sed -i 's|^.*date.timezone.*$|date.timezone='${timezone}'|' /etc/php/php.ini - fi - fi -} - -pre_upgrade() { - # we moved php.ini from /etc/ to /etc/php - # lets save the old file before pacman deletes it. - # can be removed later - if [ -f /etc/php.ini ] && [ $(vercmp '5.2.4-2' $2) -ge 0 ];then - echo 'Backing up old php.ini...' - mv /etc/php.ini /etc/php.ini.pacsave.tmp - fi -} - -post_upgrade() { - post_install - echo ' - ==> Review your php.ini - - Your php installation has been updated. You should review your current - php.ini and check any upstream changes according to the default - configuration which can be found at php.ini.pacnew. - ' - # if we upgraded from an installation with old config layout, move the old - # php.ini to the right place and inform the user about the changes. - # can be removed later - if [ -f /etc/php.ini.pacsave.tmp ] && [ $(vercmp '5.2.4-2' $2) -ge 0 ]; then - echo 'Restoring old php.ini...' - mv /etc/php/php.ini /etc/php/php.ini.pacnew - mv /etc/php.ini.pacsave.tmp /etc/php/php.ini - if [ -f /etc/systemconfig ] - then - . /etc/systemconfig - if [ -f /etc/php/php.ini ] - then - sed -i 's|^.*date.timezone.*$|date.timezone='${timezone}'|' /etc/php/php.ini - fi - fi - echo 'Updating extension dir...' - sed -i -e 's/#extension_dir = "/usr/lib/php/20060613/"/#extension_dir = "/usr/lib/php/modules/"#g' /etc/php/php.ini - echo ' - ==> Location of php.ini has changed - - A previous configuration was found at /etc/php.ini. PHP stores its - configuration at /etc/php/ now. Your old php.ini was moved to - /etc/php/php.ini. You should merge your old file with the - default one that can be found at /etc/php/php.ini.pacnew. - - Make sure to enable the modules you need. A lot of them are shared - objects now and not statically built into php. - - External modules store their configuration in /etc/php/conf.d/. PHP - scans that directory for any ini files. - ' - fi - # be nice to [testing] users and update php.ini to fix bug #8141. - # can be removed later - if [ $(vercmp '5.2.4-3' $2) -eq 0 ]; then - echo 'Updating extension dir...' - sed -i -e 's/#extension_dir = "/usr/lib/php/extensions/"/#extension_dir = "/usr/lib/php/20060613/"#g' /etc/php/php.ini - fi -} - -op=$1 -shift -[ "$(type -t "$op")" = "function" ] && $op "$@" |