#!/bin/bash # postrm script for cpanel-sitejet-plugin # # 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 _cpanel_plugins="/var/cpanel/plugins" 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 _ulc="/usr/local/cpanel" export _unitdir="/usr/lib/systemd/system" export buildroot="/usr/src/packages/BUILD/debian/tmp" export config_docs_url="https://cpanel.net # TODO" export full_package_name="cpanel-sitejet-plugin-4.3.1" export ix86="i386" export name="cpanel-sitejet-plugin" export nil="0" export ns_name="ea" export pkg="" export pkg_name="" export pkgname="" export previous_version="4.3.0" export release="1" export release_prefix="1" export scl="" export scl_name="" export scl_name_base="" export scl_name_version="" export scl_prefix="" export version="4.3.1" export version_with_debian_revision="4.3.1-1" export SOURCE0="$DEB_SOURCE_ROOT/LICENSE" export SOURCE1="$DEB_SOURCE_ROOT/pkg.postinst" export SOURCE2="$DEB_SOURCE_ROOT/pkg.postrm" export SOURCE3="$DEB_SOURCE_ROOT/pkg.preinst" export SOURCE4="$DEB_SOURCE_ROOT/pkg.prerm" export SOURCE5="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-add_api_token.openapi.yaml" export SOURCE6="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-can_create_domains.openapi.yaml" export SOURCE7="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-create_account.openapi.yaml" export SOURCE8="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-create_restore_point.openapi.yaml" export SOURCE9="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-create_website.openapi.yaml" export SOURCE10="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-disk_quota_check.openapi.yaml" export SOURCE11="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_all_sites_metadata.openapi.yaml" export SOURCE12="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_all_user_sitejet_info.openapi.yaml" export SOURCE13="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_api_token.openapi.yaml" export SOURCE14="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_preview_url.openapi.yaml" export SOURCE15="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_sitebuilder_domain_statuses.openapi.yaml" export SOURCE16="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_sso_link.openapi.yaml" export SOURCE17="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_templates.openapi.yaml" export SOURCE18="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-get_user_site_metadata.openapi.yaml" export SOURCE19="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-poll_publish.openapi.yaml" export SOURCE20="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-publish.openapi.yaml" export SOURCE21="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-restore_document_root.openapi.yaml" export SOURCE22="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-set_template.openapi.yaml" export SOURCE23="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet-start_publish.openapi.yaml" export SOURCE24="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_API_Sitejet.pm" export SOURCE25="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Admin_Modules_Cpanel_sitejet.pm" export SOURCE26="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Config_ConfigObj_Driver_Sitejet.pm" export SOURCE27="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Config_ConfigObj_Driver_Sitejet_META.pm" export SOURCE28="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Exception_Sitejet_API.pm" export SOURCE29="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Plugins_Components_cpanel_tools_SitejetBannerAI.pm" export SOURCE30="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Server_WebSocket_cpanel_LogStreamer.pm" export SOURCE31="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Sitejet_Beta_Setup.pm" export SOURCE32="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Sitejet_Connector.pm" export SOURCE33="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Sitejet_Hooks_ChangeDomains.pm" export SOURCE34="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Sitejet_MoveWebsite.pm" export SOURCE35="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Sitejet_Publish.pm" export SOURCE36="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Template_Plugin_Sitejet.pm" export SOURCE37="$DEB_SOURCE_ROOT/_usr_local_cpanel_Whostmgr_API_1_Sitejet-get_commerce.openapi.yaml" export SOURCE38="$DEB_SOURCE_ROOT/_usr_local_cpanel_Whostmgr_API_1_Sitejet-get_ecommerce.openapi.yaml" export SOURCE39="$DEB_SOURCE_ROOT/_usr_local_cpanel_Whostmgr_API_1_Sitejet-set_commerce.openapi.yaml" export SOURCE40="$DEB_SOURCE_ROOT/_usr_local_cpanel_Whostmgr_API_1_Sitejet-set_ecommerce.openapi.yaml" export SOURCE41="$DEB_SOURCE_ROOT/_usr_local_cpanel_Whostmgr_API_1_Sitejet.pm" export SOURCE42="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_plugin_banners_sitejet_banner-ai_assets_tools-banner-bg.png" export SOURCE43="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_plugin_banners_sitejet_banner-ai_cp-sitejet-banner-ai.min.js" export SOURCE44="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_plugin_banners_sitejet_banner-ai_sitejet_banner_ai.tt" export SOURCE45="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet-domains_index.html.tt" export SOURCE46="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet-domains_sitejet-api.min.js" export SOURCE47="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_3rdpartylicenses.txt" export SOURCE48="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_assets_Site_Builder_Dark.svg" export SOURCE49="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_assets_Site_Builder_Light.svg" export SOURCE50="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_assets_no-image.svg" export SOURCE51="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_index.html.tt" export SOURCE52="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_jupiter-styles-main-rtl.7862efc34a8366cd.css" export SOURCE53="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_jupiter-styles-main.68ae2510740fb843.css" export SOURCE54="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_main.4447a6a6989bfde3.js" export SOURCE55="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_polyfills.fe2a85d529afbbf9.js" export SOURCE56="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_runtime.d27c0ba731149486.js" export SOURCE57="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_styles.40f9dc8b1a33a0bb.css" export SOURCE58="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_vendor-89d5c698.7ec1d195a9aa4b2c.js" export SOURCE59="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_vendor-c0d76f48.2e182a425b340275.js" export SOURCE60="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_sitejet_webpack.shim.html" export SOURCE61="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-API-Sitejet_plugin.t" export SOURCE62="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Admin-Modules-Cpanel-sitejet_plugin.t" export SOURCE63="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Config-ConfigObj-Driver-Sitejet-META_plugin.t" export SOURCE64="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Config-ConfigObj-Driver-Sitejet_plugin.t" export SOURCE65="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Exception-Sitejet-API_sitejet_plugin.t" export SOURCE66="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Plugins-Components-cpanel-tools-SitejetBannerAI_plugin.t" export SOURCE67="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Sitejet-Beta-Setup.t" export SOURCE68="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Sitejet-Connector_sitejet_plugin.t" export SOURCE69="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Sitejet-Hooks-ChangeDomains.t" export SOURCE70="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Sitejet-MoveWebsite_plugin.t" export SOURCE71="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Sitejet-MoveWebsite_update_assets.t" export SOURCE72="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Sitejet-Publish_sitejet_plugin.t" export SOURCE73="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Template-Plugin-Sitejet.t" export SOURCE74="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Whostmgr-API-1-Sitejet_plugin.t" export SOURCE75="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_retry_domain_migration_sitejet_plugin.t" export SOURCE76="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_qa_playwright_classes_plugins_sitejet_banner_ai.ts" export SOURCE77="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_qa_playwright_fixtures_plugins_sitejet_sitejet_banner_ai.ts" export SOURCE78="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_qa_playwright_page_plugins_sitejet_sitejet_banner_ai.ts" export SOURCE79="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_qa_playwright_specs_plugins_sitejet_cpanel-sitejet_banner_ai-companyid.spec.ts" export SOURCE80="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_qa_playwright_specs_plugins_sitejet_cpanel-sitejet_banner_ai.spec.ts" export SOURCE81="$DEB_SOURCE_ROOT/_var_cpanel_feature-flags_cpanel.sitejet.plugin.installed" export SOURCE82="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_README.md" export SOURCE83="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_config.yaml" export SOURCE84="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_cpanel-sitejet-plugin.svg" export SOURCE85="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_extra_strings" export SOURCE86="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_features_11.110_disable_sitejet.jsonc" export SOURCE87="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_features_11.110_enable_sitejet.jsonc" export SOURCE88="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_features_11.116_enable_sitejet.jsonc" export SOURCE89="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_install.json" export SOURCE90="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_js_files_with_mt_calls" export SOURCE91="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_ar.yaml" export SOURCE92="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_de.yaml" export SOURCE93="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_es.yaml" export SOURCE94="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_es_419.yaml" export SOURCE95="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_es_es.yaml" export SOURCE96="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_fr.yaml" export SOURCE97="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_id.yaml" export SOURCE98="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_ja.yaml" export SOURCE99="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_pt.yaml" export SOURCE100="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_pt_br.yaml" export SOURCE101="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_locale_tr.yaml" export SOURCE102="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_menu_LeftMenu.default.yaml" export SOURCE103="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_menu_WelcomeModal.yaml" export SOURCE104="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_resources_api.php.tmpl" export SOURCE105="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_resources_flags.tar.gz" export SOURCE106="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_scripts_move_config_to_dot_cpanel.pl" export SOURCE107="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_scripts_retry_domain_migration.pl" export SOURCE108="$DEB_SOURCE_ROOT/_var_cpanel_plugins_sitejet_banner-ai_sitejet_banner_ai.json" # End vars.sh # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # 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 # Contents of SOURCES/pkg.postrm #!/bin/bash # NOTE: --clean removes the cdb file first and then regenerates it. Don't use --force also, # its implied by --clean. /usr/local/cpanel/bin/servers_queue queue 'build_locale_databases --clean' || true # End SOURCES/pkg.postrm exit 0