0x1949 Team - FAZEMRX - MANAGER
Edit File: ea-apache24-mod-security2.postrm
#!/bin/bash # postrm script for ea-apache24-mod-security2 # # 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 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="/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 _httpd_apxs="/usr/bin/apxs" export _httpd_bindir="/etc/apache2/bin" export _httpd_confdir="/etc/apache2/conf.d" export _httpd_dir="/etc/apache2" export _httpd_logdir="/var/log/apache2" export _httpd_mmn="%(cat /opt/cpanel//root/usr/include/apache2/.mmn 2>/dev/null || echo missing-ea-apache2-devel)" export _httpd_modconfdir="/etc/apache2/conf.modules.d" export _httpd_moddir="/usr/lib64/apache2/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="/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="/etc/rc.d/init.d" export _root_libdir="/opt/cpanel//root/usr/lib64" export _root_libexecdir="/opt/cpanel//root/usr/libexec" export _root_localstatedir="/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="/etc" export _sbindir="/opt/cpanel//root/usr/sbin" export _scl_prefix="/opt/cpanel" export _scl_root="/opt/cpanel//root" export _sysconfdir="/etc" export _unitdir="/usr/lib/systemd/system" export _var="" export buildroot="/usr/src/packages/BUILD" export ea_apr_dir="/opt/cpanel/ea-apr16" export ea_apr_name="ea_apr16" export ea_apu_dir="/opt/cpanel/ea-apr16" export ea_libcurl_ver="7.68.0-2" export full_package_name="ea-apache24-mod_security2-2.9.7" export ix86="i386" export libcurl_ver="7.61.0" export module_name="mod_security2" export name="ea-apache24-mod_security2" export nil="0" export ns_name="ea-apache24" export optflags="%{optflags} -O3" export pkg="" export pkg_name="" export pkgname="" export previous_version="2.9.6" export release="1" export release_prefix="1" export scl="" export scl_name="" export scl_name_base="" export scl_name_version="" export scl_prefix="" export upstream_name="ModSecurity" export version="2.9.7" export version_with_debian_revision="2.9.7-1" export SOURCE1="$DEB_SOURCE_ROOT/modsec2.conf" export SOURCE2="$DEB_SOURCE_ROOT/loadmod.conf" export SOURCE3="$DEB_SOURCE_ROOT/modsec2.user.conf" export SOURCE4="$DEB_SOURCE_ROOT/modsec2.cpanel.conf" # End vars.sh # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install' # * <new-postrm> `abort-install' <old-version> # * <new-postrm> `abort-upgrade' <old-version> # * <disappearer's-postrm> `disappear' <overwriter> # <overwriter-version> # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # Start debify/settings/install_directories if [ "$1" == "purge" ]; then rm -rf /etc/apache2/logs/modsec_audit fi # End debify/settings/install_directories exit 0