#!/bin/bash # prerm script for cpanel-socialbee-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-socialbee-plugin-1.6.0" export ix86="i386" export name="cpanel-socialbee-plugin" export nil="0" export ns_name="ea" export pkg="" export pkg_name="" export pkgname="" export previous_version="1.5.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="1.6.0" export version_with_debian_revision="1.6.0-1" export SOURCE0="$DEB_SOURCE_ROOT/LICENSE" export SOURCE1="$DEB_SOURCE_ROOT/pkg.postinst" export SOURCE2="$DEB_SOURCE_ROOT/pkg.preinst" export SOURCE3="$DEB_SOURCE_ROOT/pkg.prerm" export SOURCE4="$DEB_SOURCE_ROOT/_etc_systemd_system_initialize_socialbee_plugin.service" export SOURCE5="$DEB_SOURCE_ROOT/_etc_systemd_system_initialize_socialbee_plugin.timer" export SOURCE6="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Config_ConfigObj_Driver_SocialBee.pm" export SOURCE7="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_Config_ConfigObj_Driver_SocialBee_META.pm" export SOURCE8="$DEB_SOURCE_ROOT/_usr_local_cpanel_Cpanel_SocialBee_LifeCycle.pm" export SOURCE9="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_3rdpartylicenses.txt" export SOURCE10="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-Bold.ttf" export SOURCE11="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-BoldItalic.ttf" export SOURCE12="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-ExtraBold.ttf" export SOURCE13="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-ExtraBoldItalic.ttf" export SOURCE14="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-Italic.ttf" export SOURCE15="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-Light.ttf" export SOURCE16="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-LightItalic.ttf" export SOURCE17="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-Regular.ttf" export SOURCE18="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-SemiBold.ttf" export SOURCE19="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_OpenSans-SemiBoldItalic.ttf" export SOURCE20="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_favicon.ico" export SOURCE21="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_accounts_user_placeholder_transparent.png" export SOURCE22="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_copilot_copilot-illustration.svg" export SOURCE23="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_dashboard_alert.svg" export SOURCE24="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_dashboard_bee_box.png" export SOURCE25="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_dashboard_home.png" export SOURCE26="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_loading_error.png" export SOURCE27="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_loading_image-loader.svg" export SOURCE28="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_loading_spinner.svg" export SOURCE29="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_background.svg" export SOURCE30="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_ellipse-2.svg" export SOURCE31="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_ellipse.svg" export SOURCE32="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_rectangles.svg" export SOURCE33="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_social-media-share.svg" export SOURCE34="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_social-media.svg" export SOURCE35="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_socialbee-logo.svg" export SOURCE36="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_variant1_image1.svg" export SOURCE37="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_variant1_layer1.svg" export SOURCE38="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_variant1_layer2.svg" export SOURCE39="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_variant2_image2.svg" export SOURCE40="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_variant2_image3.svg" export SOURCE41="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_assets_images_welcome_variant2_image4.svg" export SOURCE42="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_background.svg" export SOURCE43="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_FontAwesome.otf" export SOURCE44="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-Bold.ttf" export SOURCE45="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-BoldItalic.ttf" export SOURCE46="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-ExtraBold.ttf" export SOURCE47="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-ExtraBoldItalic.ttf" export SOURCE48="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-Italic.ttf" export SOURCE49="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-Light.ttf" export SOURCE50="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-LightItalic.ttf" export SOURCE51="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-Regular.ttf" export SOURCE52="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-SemiBold.ttf" export SOURCE53="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_OpenSans-SemiBoldItalic.ttf" export SOURCE54="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_fontawesome-webfont.eot" export SOURCE55="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_fontawesome-webfont.svg" export SOURCE56="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_fontawesome-webfont.ttf" export SOURCE57="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_fontawesome-webfont.woff" export SOURCE58="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_fontawesome-webfont.woff2" export SOURCE59="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_glyphicons-halflings-regular.eot" export SOURCE60="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_glyphicons-halflings-regular.svg" export SOURCE61="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_glyphicons-halflings-regular.ttf" export SOURCE62="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_glyphicons-halflings-regular.woff" export SOURCE63="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_glyphicons-halflings-regular.woff2" export SOURCE64="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_socialbee-icons.eot" export SOURCE65="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_socialbee-icons.svg" export SOURCE66="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_socialbee-icons.ttf" export SOURCE67="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_socialbee-icons.woff" export SOURCE68="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_fonts_socialbee-icons.woff2" export SOURCE69="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_image3.svg" export SOURCE70="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_image4.svg" export SOURCE71="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_index.html.tt" export SOURCE72="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_layer1.svg" export SOURCE73="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_layer2.svg" export SOURCE74="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_main.js" export SOURCE75="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_polyfills.js" export SOURCE76="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_runtime.js" export SOURCE77="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_styles.css" export SOURCE78="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_user_placeholder_transparent.png" export SOURCE79="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_vendor-89d5c698.css" export SOURCE80="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_vendor-89d5c698.js" export SOURCE81="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_vendor-c0d76f48.css" export SOURCE82="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_vendor-c0d76f48.js" export SOURCE83="$DEB_SOURCE_ROOT/_usr_local_cpanel_base_frontend_jupiter_socialbee_webpack.shim.html" export SOURCE84="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Config-ConfigObj-Driver-SocialBee-META_plugin.t" export SOURCE85="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-Config-ConfigObj-Driver-SocialBee_plugin.t" export SOURCE86="$DEB_SOURCE_ROOT/_usr_local_cpanel_t_medium_Cpanel-SocialBee-LifeCycle_plugin.t" export SOURCE87="$DEB_SOURCE_ROOT/_var_cpanel_plugins_socialbee_cpanel-socialbee-plugin.svg" export SOURCE88="$DEB_SOURCE_ROOT/_var_cpanel_plugins_socialbee_install.json" export SOURCE89="$DEB_SOURCE_ROOT/_var_cpanel_plugins_socialbee_lifecycle.jsonc" export SOURCE90="$DEB_SOURCE_ROOT/_var_cpanel_plugins_socialbee_menu_LeftMenu.default.yaml" export SOURCE91="$DEB_SOURCE_ROOT/_var_cpanel_plugins_socialbee_menu_LeftMenu.yaml" # End vars.sh # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # Contents of SOURCES/pkg.prerm #!/bin/bash PERL_BIN='/usr/local/cpanel/3rdparty/bin/perl' # Uninstall if [[ "$1" == "0" || "$1" == "remove" ]]; then /usr/local/cpanel/scripts/run_plugin_lifecycle --plugin cpanel-socialbee-plugin --method uninstall || true echo "Removing periodic license and rules check for Social Media Manager." || true /usr/local/cpanel/scripts/setup_systemd_timer_for_plugins --app_name socialbee --method remove || true $PERL_BIN -e 'use Cpanel::Plugins::State (); Cpanel::Plugins::State::uninstall("cpanel.socialbee.plugin")' fi # End SOURCES/pkg.prerm exit 0