Kerala Cyber Warriors
KCW Uploader V1.1

Path : /var/lib/dpkg/info/
File Upload :
Current File : //var/lib/dpkg/info/cpanel-userperl.postinst

#!/bin/sh

set -e

# the expected SITE_LIB
export SITE_LIB='/usr/local/share/perl/5.30.0'

setupUserConfig() {
    # only if /usr/bin/perl is available
    [ -x /usr/bin/perl ] || return;
    umask 022
    # set a custom cPanelUserConfig.pm if /usr/bin/perl is different
    /usr/bin/perl -MConfig -e 'exit if $Config{sitelib} eq $ENV{SITE_LIB}; \
        print "Installing cPanelUserConfig.pm to $Config{sitelib}\n"; \
        print `/bin/mkdir -p $Config{sitelib}` unless -d $Config{sitelib}; \
        print `/bin/cp "$ENV{SITE_LIB}/cPanelUserConfig.pm" "$Config{sitelib}/cPanelUserConfig.pm" 2>&1`;' ||:
}

case "$1" in
  configure)
    setupUserConfig;
  ;;
esac

exit 0

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