0x1949 Team - FAZEMRX - MANAGER
Edit File: ea-php82-pear.postinst
#!/bin/bash # postinst script for ea-php82-pear # # see: dh_installdeb(1) set -e # Begin vars.sh #!/bin/bash # DO NOT EDIT # This file is regenerated each run. # If you want to add or change a variable, edit debify/settings.json and the vars hashref source /etc/os-release export OBS_REPO="x${NAME}_${VERSION_ID}" if ls debian/*.install &> /dev/null; then perl -pi -e 's/\${env:OBS_REPO}/$ENV{OBS_REPO}/' debian/*.install fi export DEB_INSTALL_ROOT="/usr/src/packages/BUILD/debian/tmp" export DEB_SOURCE_ROOT="/usr/src/packages/BUILD/debian/SOURCES_FROM_SPEC" export RPM_SOURCE_DIR="/usr/src/packages/BUILD/debian/SOURCES_FROM_SPEC" export __isa_bits="64" export __isa_name="x86" export __sourcedir="" export _bindir="/opt/cpanel/ea-php82/root/usr/bin" export _datadir="/opt/cpanel/ea-php82/root/usr/share" export _defaultdocdir="/opt/cpanel/ea-php82/root/usr/share/doc" export _docdir="/opt/cpanel/ea-php82/root/usr/share/doc" export _exec_prefix="/opt/cpanel/ea-php82/root/usr" export _includedir="/opt/cpanel/ea-php82/root/usr/include" export _infodir="/opt/cpanel/ea-php82/root/usr/share/info" export _isa="" export _lib="lib64" export _libdir="/opt/cpanel/ea-php82/root/usr/lib64" export _libexecdir="/opt/cpanel/ea-php82/root/usr/libexec" export _localstatedir="/opt/cpanel/ea-php82/root/var" export _mandir="/opt/cpanel/ea-php82/root/usr/share/man" export _prefix="/opt/cpanel/ea-php82/root/usr" export _root_bindir="/opt/cpanel/ea-php82/root/usr/bin" export _root_datadir="/opt/cpanel/ea-php82/root/usr/share" export _root_exec_prefix="/opt/cpanel/ea-php82/root/usr" export _root_includedir="/opt/cpanel/ea-php82/root/usr/include" export _root_infodir="/opt/cpanel/ea-php82/root/usr/share/info" export _root_initddir="/opt/cpanel/ea-php82/root/etc/rc.d/init.d" export _root_libdir="/opt/cpanel/ea-php82/root/usr/lib64" export _root_libexecdir="/opt/cpanel/ea-php82/root/usr/libexec" export _root_localstatedir="/opt/cpanel/ea-php82/root/var" export _root_mandir="/opt/cpanel/ea-php82/root/usr/share/man" export _root_prefix="/opt/cpanel/ea-php82/root/usr" export _root_sbindir="/opt/cpanel/ea-php82/root/usr/sbin" export _root_sharedstatedir="/opt/cpanel/ea-php82/root/usr/com" export _root_sysconfdir="/opt/cpanel/ea-php82/root/etc" export _sbindir="/opt/cpanel/ea-php82/root/usr/sbin" export _scl_prefix="/opt/cpanel" export _scl_root="/opt/cpanel/ea-php82/root" export _sysconfdir="/opt/cpanel/ea-php82/root/etc" export _unitdir="/usr/lib/systemd/system" export buildroot="/usr/src/packages/BUILD" export full_package_name="ea-php82-pear-1.10.15" export ix86="i386" export metadir="/opt/cpanel/ea-php82/root/var/lib/pear" export name="ea-php82-pear" export nil="0" export ns_name="ea" export peardir="/opt/cpanel/ea-php82/root/usr/share/pear" export pkg="" export pkg_name="ea-php82-pear" export pkgname="ea-php82-pear" export previous_version="1.10.13" export release="1" export release_prefix="1" export scl="ea-php82" export scl_name="ea-php82" export scl_name_base="" export scl_name_version="" export scl_prefix="ea-php82-" export version="1.10.15" export version_with_debian_revision="1.10.15-1" export SOURCE1="$DEB_SOURCE_ROOT/install-pear.php" export SOURCE3="$DEB_SOURCE_ROOT/strip.php" export SOURCE10="$DEB_SOURCE_ROOT/pear.sh" export SOURCE11="$DEB_SOURCE_ROOT/pecl.sh" export SOURCE12="$DEB_SOURCE_ROOT/peardev.sh" export SOURCE13="$DEB_SOURCE_ROOT/c6headers.sh" export SOURCE21="$DEB_SOURCE_ROOT/Archive_Tar-1.4.14.tgz" export SOURCE22="$DEB_SOURCE_ROOT/Console_Getopt-1.4.3.tgz" export SOURCE23="$DEB_SOURCE_ROOT/Structures_Graph-1.1.1.tgz" export SOURCE24="$DEB_SOURCE_ROOT/XML_Util-1.4.5.tgz" export SOURCE30="$DEB_SOURCE_ROOT/sanity_check.sh" export SOURCE8001="$DEB_SOURCE_ROOT/PEAR-1.10.15.tgz" # End vars.sh # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # <new-version> # * <postinst> `abort-remove' # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' # <failed-install-package> <version> `removing' # <conflicting-package> <version> # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Contents of SOURCES/pkg.postinst #!/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 # End SOURCES/pkg.postinst exit 0