Kerala Cyber
Warriors
KCW Uploader V1.1
Path : /var/lib/dpkg/info/ |
|
Current File : //var/lib/dpkg/info/ea-apache24.postinst |
#!/bin/bash
# postinst 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:
# * <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
# Start debify/settings/install_directories
mkdir -p /var/log/apache2
chmod 0711 /var/log/apache2
# End debify/settings/install_directories
# Contents of SOURCES/pkg.ea-apache24.postinst
#!/bin/bash
if test -x "/usr/bin/apt"; then
# we must manually set permissions on apt/deb based system because deb’s have no mechanism for permission.
chown root:nobody /usr/sbin/suexec
chmod 4755 /usr/sbin/suexec
setcap cap_setgid,cap_setuid+ep /usr/sbin/suexec
dpkg-maintscript-helper rm_conffile /etc/apache2/conf.modules.d/425_mod_socache_redis.conf 2.4.54-2~ -- "$@"
fi
# We do not START these services here because we
# depend on the universal hook to do that for us.
/bin/systemctl enable httpd.service >/dev/null 2>&1 || /bin/true
chmod 644 /etc/apache2/logs/suexec_log || /bin/true
chown root:nobody /etc/apache2/logs/suexec_log || /bin/true
# just in case they doof the symlink:
chmod 644 /var/log/apache2/suexec_log || /bin/true
chown root:nobody /var/log/apache2/suexec_log || /bin/true
# End SOURCES/pkg.ea-apache24.postinst
exit 0
-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ