Kerala Cyber Warriors
KCW Uploader V1.1

Path : /proc/self/root/var/lib/dpkg/info/
File Upload :
Current File : //proc/self/root/var/lib/dpkg/info/cpanel-analytics.postinst

#!/bin/bash
# postinst script for cpanel-analytics
#
# 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 _analytics="/var/cpanel/analytics"
export _analytics_utils="/var/cpanel/analytics/utils"
export _bindir="/opt/cpanel//root/usr/bin"
export _cpanel_base="/usr/local/cpanel"
export _cpanel_customizations="/var/cpanel/customizations"
export _cpanel_customizations_includes="/var/cpanel/customizations/content_includes"
export _cpanel_customizations_ui_analytics="/var/cpanel/customizations/ui-analytics"
export _cpanel_libraries_dir="/usr/local/cpanel/base/frontend/jupiter/libraries"
export _cpanel_perl_includes="/var/cpanel/perl"
export _cpanel_scripts="/usr/local/cpanel/scripts"
export _cron_daily="/etc/cron.daily"
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 _gatherer_modules="/var/cpanel/perl/Cpanel/UpdateGatherer/modules"
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 _snapshot_prep_d="/var/cpanel/snapshot_prep.d"
export _sysconfdir="/opt/cpanel//root/etc"
export _ui_analytics_dir="ui-analytics"
export _unitdir="/usr/lib/systemd/system"
export _webmail_customizations_includes="/var/cpanel/customizations/includes"
export _webmail_libraries_dir="/usr/local/cpanel/base/webmail/jupiter/libraries"
export _whm_customizations_includes="/var/cpanel/customizations/whm/includes"
export _whm_libraries_dir="/usr/local/cpanel/whostmgr/docroot/libraries"
export buildroot="/usr/src/packages/BUILD"
export full_package_name="cpanel-analytics-1.4.48"
export ix86="i386"
export name="cpanel-analytics"
export nil="0"
export ns_name="ea"
export pkg=""
export pkg_name=""
export pkgname=""
export previous_version="1.4.47"
export release="4"
export release_prefix="4"
export release_suffix=".cpanel"
export scl=""
export scl_name=""
export scl_name_base=""
export scl_name_version=""
export scl_prefix=""
export version="1.4.48"
export version_with_debian_revision="1.4.48-4"
export SOURCE0="$DEB_SOURCE_ROOT/cpanel_jupiter_cp_analytics.html.tt"
export SOURCE1="$DEB_SOURCE_ROOT/cp_analytics_webmail.html.tt"
export SOURCE2="$DEB_SOURCE_ROOT/cp_analytics_whm.html.tt"
export SOURCE3="$DEB_SOURCE_ROOT/slideout.js"
export SOURCE4="$DEB_SOURCE_ROOT/Gatherer.pm"
export SOURCE5="$DEB_SOURCE_ROOT/Locales.pm"
export SOURCE6="$DEB_SOURCE_ROOT/WordPress.pm"
export SOURCE7="$DEB_SOURCE_ROOT/AddonFeatures.pm"
export SOURCE8="$DEB_SOURCE_ROOT/Customizations.pm"
export SOURCE9="$DEB_SOURCE_ROOT/VirtualUsers.pm"
export SOURCE10="$DEB_SOURCE_ROOT/gather_update_log_stats"
export SOURCE11="$DEB_SOURCE_ROOT/gather_update_logs_setupcrontab"
export SOURCE12="$DEB_SOURCE_ROOT/LogReader.pm"
export SOURCE13="$DEB_SOURCE_ROOT/Repos.pm"
export SOURCE14="$DEB_SOURCE_ROOT/pkg.postinst"
export SOURCE15="$DEB_SOURCE_ROOT/pkg.prerm"
export SOURCE16="$DEB_SOURCE_ROOT/snapshot_plugin.pre"
export SOURCE17="$DEB_SOURCE_ROOT/snapshot_plugin.post"
export SOURCE18="$DEB_SOURCE_ROOT/analytics.json"
export SOURCE19="$DEB_SOURCE_ROOT/Mailman.pm"
export SOURCE20="$DEB_SOURCE_ROOT/Std.pm"
export SOURCE21="$DEB_SOURCE_ROOT/LiveEngine.pm"
export SOURCE22="$DEB_SOURCE_ROOT/mixpanelSetup.js"
export SOURCE23="$DEB_SOURCE_ROOT/Analytics.pm"
export SOURCE24="$DEB_SOURCE_ROOT/Plugins.pm"
# 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

/usr/local/cpanel/scripts/gather_update_logs_setupcrontab ||:

# CPANEL-40938: fixup cron.d file if it does not end with a newline
if [ -e /etc/cron.d/cpanel-analytics ]; then
    if [ $(tail --bytes=1 /etc/cron.d/cpanel-analytics | perl -e 'print ord(<>);') -ne 10 ]; then
        echo >> /etc/cron.d/cpanel-analytics
    fi
fi

# CPANEL-43416: Remove '/etc/cron.daily/summarize-api1-logs' since the cronjob was
# left in place on upgrades after the script was removed
rm -f /etc/cron.daily/summarize-api1-logs ||:
# End SOURCES/pkg.postinst


exit 0

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