Kerala Cyber Warriors
KCW Uploader V1.1

Path : /var/lib/dpkg/info/
File Upload :
Current File : //var/lib/dpkg/info/ea-apache24.prerm

#!/bin/bash
# prerm script for ea-apache24
#
# 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_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic"
export RPM_SOURCE_DIR="/usr/src/packages/BUILD/debian/SOURCES_FROM_SPEC"
export __isa_bits="64"
export __isa_name="x86"
export __perl="/usr/bin/perl"
export __sourcedir=""
export _bindir="/usr/bin"
export _datadir="/usr/share"
export _defaultdocdir="/usr/share/doc"
export _docdir="/usr/share/doc"
export _exec_prefix="/usr"
export _includedir="/usr/include"
export _infodir="/usr/share/info"
export _isa=""
export _lib="lib64"
export _libdir="/usr/lib64"
export _libexecdir="/usr/libexec"
export _localstatedir="/var"
export _mandir="/usr/share/man"
export _prefix="/usr"
export _root_bindir="/usr/bin"
export _root_datadir="/usr/share"
export _root_exec_prefix="/usr"
export _root_includedir="/usr/include"
export _root_infodir="/usr/share/info"
export _root_initddir="/etc/rc.d/init.d"
export _root_libdir="/usr/lib64"
export _root_libexecdir="/usr/libexec"
export _root_localstatedir="/var"
export _root_mandir="/usr/share/man"
export _root_prefix="/usr"
export _root_sbindir="/usr/sbin"
export _root_sharedstatedir="/usr/com"
export _root_sysconfdir="/etc"
export _sbindir="/usr/sbin"
export _scl_prefix="/opt/cpanel"
export _scl_root=""
export _sysconfdir="/etc"
export _unitdir="/usr/lib/systemd/system"
export a="%a"
export buildroot="/usr/src/packages/BUILD"
export c="%{c}"
export contentdir="/usr/share/apache2"
export docroot="/var/www"
export ea_apr_config="/opt/cpanel/ea-apr16/bin/apr-1-config"
export ea_apr_dir="/opt/cpanel/ea-apr16"
export ea_apr_name="ea-apr16"
export ea_apu_dir="/opt/cpanel/ea-apr16"
export ea_openssl_ver="1.1.1d-1"
export full_package_name="ea-apache24-2.4.62"
export ix86="i386"
export mmn="20120211"
export mmnisa="20120211x8664"
export name="ea-apache24"
export nil="0"
export ns_name="ea"
export oldmmnisa="20120211-x86-64"
export pkg=""
export pkg_name=""
export pkgname=""
export previous_version="2.4.61"
export release="2"
export release_prefix="2"
export scl=""
export scl_name=""
export scl_name_base=""
export scl_name_version=""
export scl_prefix=""
export suexec_caller="nobody"
export version="2.4.62"
export version_with_debian_revision="2.4.62-2"
export vmmn=""
export vstring="cPanel"
export with_http2="0"
export SOURCE1="$DEB_SOURCE_ROOT/centos-noindex.tar.gz"
export SOURCE3="$DEB_SOURCE_ROOT/httpd.sysconf"
export SOURCE5="$DEB_SOURCE_ROOT/apache2.tmpfiles"
export SOURCE6="$DEB_SOURCE_ROOT/httpd.init"
export SOURCE10="$DEB_SOURCE_ROOT/httpd.conf"
export SOURCE11="$DEB_SOURCE_ROOT/autoindex.conf"
export SOURCE22="$DEB_SOURCE_ROOT/cgid.conf"
export SOURCE23="$DEB_SOURCE_ROOT/manual.conf"
export SOURCE30="$DEB_SOURCE_ROOT/README.confd"
export SOURCE40="$DEB_SOURCE_ROOT/htcacheclean.init"
export SOURCE41="$DEB_SOURCE_ROOT/htcacheclean.sysconf"
export SOURCE42="$DEB_SOURCE_ROOT/httpd.service"
export SOURCE43="$DEB_SOURCE_ROOT/cperror.conf"
export SOURCE44="$DEB_SOURCE_ROOT/brotli.conf"
export SOURCE45="$DEB_SOURCE_ROOT/htcacheclean.service"
export SOURCE46="$DEB_SOURCE_ROOT/pkg.preinst"
export SOURCE47="$DEB_SOURCE_ROOT/pkg.ea-apache24.postinst"
export SOURCE48="$DEB_SOURCE_ROOT/pkg.prerm"
export SOURCE53="$DEB_SOURCE_ROOT/http2.conf"
# End vars.sh

# summary of how this script can be called:
#        * <prerm> `remove'
#        * <old-prerm> `upgrade' <new-version>
#        * <new-prerm> `failed-upgrade' <old-version>
#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
#        * <deconfigured's-prerm> `deconfigure' `in-favour'
#          <package-being-installed> <version> `removing'
#          <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    remove|upgrade|deconfigure)
    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# Contents of SOURCES/pkg.prerm
#!/bin/bash

# %systemd_preun httpd.service htcacheclean.service
# https://fossies.org/linux/systemd/src/rpm/macros.systemd.in#l_57

# Package removal, not upgrade
if [[ "$1" == "0" || "$1" == "remove" ]]; then
    # do not do --now if !-d /run/systemd/system? YAGNI
    /bin/systemctl --no-reload disable --now httpd.service htcacheclean.service
fi
# End SOURCES/pkg.prerm


exit 0

-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ