Kerala Cyber
Warriors
KCW Uploader V1.1
Path : /var/lib/dpkg/info/ |
|
Current File : //var/lib/dpkg/info/ea-profiles-cpanel.preinst |
#!/bin/bash
# preinst script for ea-profiles-cpanel
#
# 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//root/usr/bin"
export _datadir="/opt/cpanel//root/usr/share"
export _defaultdocdir="/opt/cpanel//root/usr/share/doc"
export _docdir="/opt/cpanel//root/usr/share/doc"
export _exec_prefix="/opt/cpanel//root/usr"
export _includedir="/opt/cpanel//root/usr/include"
export _infodir="/opt/cpanel//root/usr/share/info"
export _isa=""
export _lib="lib64"
export _libdir="/opt/cpanel//root/usr/lib64"
export _libexecdir="/opt/cpanel//root/usr/libexec"
export _localstatedir="/opt/cpanel//root/var"
export _mandir="/opt/cpanel//root/usr/share/man"
export _prefix="/opt/cpanel//root/usr"
export _root_bindir="/opt/cpanel//root/usr/bin"
export _root_datadir="/opt/cpanel//root/usr/share"
export _root_exec_prefix="/opt/cpanel//root/usr"
export _root_includedir="/opt/cpanel//root/usr/include"
export _root_infodir="/opt/cpanel//root/usr/share/info"
export _root_initddir="/opt/cpanel//root/etc/rc.d/init.d"
export _root_libdir="/opt/cpanel//root/usr/lib64"
export _root_libexecdir="/opt/cpanel//root/usr/libexec"
export _root_localstatedir="/opt/cpanel//root/var"
export _root_mandir="/opt/cpanel//root/usr/share/man"
export _root_prefix="/opt/cpanel//root/usr"
export _root_sbindir="/opt/cpanel//root/usr/sbin"
export _root_sharedstatedir="/opt/cpanel//root/usr/com"
export _root_sysconfdir="/opt/cpanel//root/etc"
export _sbindir="/opt/cpanel//root/usr/sbin"
export _scl_prefix="/opt/cpanel"
export _scl_root="/opt/cpanel//root"
export _sysconfdir="/opt/cpanel//root/etc"
export _unitdir="/usr/lib/systemd/system"
export buildroot="/usr/src/packages/BUILD"
export full_package_name="ea-profiles-cpanel-1.0"
export ix86="i386"
export name="ea-profiles-cpanel"
export nil="0"
export ns_name="ea"
export pkg=""
export pkg_name=""
export pkgname=""
export previous_version="1.0.45"
export release="71"
export release_prefix="71"
export scl=""
export scl_name=""
export scl_name_base=""
export scl_name_version=""
export scl_prefix=""
export version="1.0"
export version_with_debian_revision="1.0-71"
export SOURCE1="$DEB_SOURCE_ROOT/pkg.postinst"
export SOURCE2="$DEB_SOURCE_ROOT/pkg.prerm"
export SOURCE3="$DEB_SOURCE_ROOT/update-available-profiles"
export SOURCE8001="$DEB_SOURCE_ROOT/allphp-opcache.json"
export SOURCE8002="$DEB_SOURCE_ROOT/allphp.json"
export SOURCE8003="$DEB_SOURCE_ROOT/default-nginx.json"
export SOURCE8004="$DEB_SOURCE_ROOT/default.json"
export SOURCE8005="$DEB_SOURCE_ROOT/mpm_itk.json"
export SOURCE8006="$DEB_SOURCE_ROOT/nophp.json"
export SOURCE8007="$DEB_SOURCE_ROOT/rubypassenger24.json"
export SOURCE8008="$DEB_SOURCE_ROOT/rubypassenger27.json"
export SOURCE8009="$DEB_SOURCE_ROOT/server-type-wp2-default.json"
export SOURCE8010="$DEB_SOURCE_ROOT/server-type-wp2-php74+80+82.json"
export SOURCE8011="$DEB_SOURCE_ROOT/server-type-wp2-php74+80.json"
export SOURCE8012="$DEB_SOURCE_ROOT/server-type-wp2-php74+82.json"
export SOURCE8013="$DEB_SOURCE_ROOT/server-type-wp2-php74.json"
export SOURCE8014="$DEB_SOURCE_ROOT/server-type-wp2-php80+82.json"
export SOURCE8015="$DEB_SOURCE_ROOT/server-type-wp2-php80.json"
export SOURCE8016="$DEB_SOURCE_ROOT/server-type-wp2-php82.json"
export SOURCE8017="$DEB_SOURCE_ROOT/worker.json"
# End vars.sh
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
install|upgrade)
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Contents of SOURCES/pkg.preinst
#!/bin/bash
# deb only to avoid needless:
# dpkg: warning: unable to delete old directory '/etc/cpanel/ea4/profiles/cpanel': Directory not empty
# for install and upgrade as postinst will do the needful
echo "Pre-cleaning active cpanel profiles directory."
rm -rf /etc/cpanel/ea4/profiles/cpanel/*.json
# End SOURCES/pkg.preinst
exit 0
-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ