Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:cpanel:dev:EA4
scl-php71-pear
pkg.postinst
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pkg.postinst of Package scl-php71-pear
#!/bin/bash # vars set when slurped into maintenance scripts it autogenerated # no mechanism for that in SPEC yet, also looks in debian/ and not <macro>.debian/ # we can not yet use them in the spec until ZC-8893 does ^^^ # force new value for these items current=$($_bindir/pear config-get temp_dir system) if [ "$current" == "/var/tmp" ]; then $_bindir/pear config-set \ temp_dir $_localstatedir/tmp/php-pear \ system >/dev/null || : fi current=$($_bindir/pear config-get test_dir system) if [ "$current" != "$_datadir/tests/pear" ]; then $_bindir/pear config-set \ test_dir $_datadir/tests/pear \ system >/dev/null || : fi current=$($_bindir/pear config-get data_dir system) if [ "$current" != "$_datadir/pear-data" ]; then $_bindir/pear config-set \ data_dir $_datadir/pear-data \ system >/dev/null || : fi current=$($_bindir/pear config-get metadata_dir system) if [ "$current" != "$metadir" ]; then $_bindir/pear config-set \ metadata_dir $metadir \ system >/dev/null || : fi current=$($_bindir/pear config-get -c pecl doc_dir system) if [ "$current" != "$_docdir/pecl" ]; then $_bindir/pear config-set \ -c pecl \ doc_dir $_docdir/pecl \ system >/dev/null || : fi current=$($_bindir/pear config-get -c pecl test_dir system) if [ "$current" != "$_datadir/tests/pecl" ]; then $_bindir/pear config-set \ -c pecl \ test_dir $_datadir/tests/pecl \ system >/dev/null || : fi $_bindir/pear config-set \ php_ini $_scl_root/etc/php.d/zzzzzzz-pecl.ini \ system >/dev/null || : # preserve local pear INI on file name change (Note that .rpmsave won't exist at this point) if [ "${version}-${release_prefix}" == "1.10.1-11" -a -s ${_scl_root}/etc/php.d/02-pecl.ini ] ; then echo "Preserving INI from 02-pecl.ini to zzzzzzz-pecl.ini"; cp -f ${_scl_root}/etc/php.d/02-pecl.ini ${_scl_root}/etc/php.d/zzzzzzz-pecl.ini; echo -n "" > ${_scl_root}/etc/php.d/02-pecl.ini; # preserving times does not avoid .rpmsave since those changed when data was added post-install :/ fi # Remove with EA3 # Stopgap measure to ensure that the cPanel interface for PEAR works # on new servers that never had EA3 installed. if [ ! -e "/usr/local/bin/pear" ]; then ln -f -s ${_bindir}/pear /usr/local/bin/pear; fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor