#!/bin/bash #################################################################################################### #### author: SlickStack ############################################################################ #### link: https://slickstack.io ################################################################### #### mirror: http://mirrors.slickstack.io/bash/ss-install-wordpress-mu-plugins.txt ################# #### path: /var/www/ss-install-wordpress-mu-plugins ################################################ #### destination: n/a (not a boilerplate) ########################################################## #### purpose: Reinstalls all the WordPress MU plugins for SlickStack servers (idempotent) ########## #### module version: WordPress 5.5.x ############################################################### #### sourced by: ss-install, ss-install-wordpress ################################################## #### bash aliases: ss install wordpress [wp] mu plugins, ss install mu plugins ##################### #################################################################################################### ## SS-CONFIG MUST BE PROPERLY CONFIGURED AND ON CURRENT BUILD BEFORE RUNNING SS-INSTALL ## ## ENSURE YOUR SS-CONFIG BUILD REMAINS CURRENT BY RUNNING SS-UPDATE OCCASIONALLY ## ## include SlickStack configuration ## source /var/www/ss-config ## include SlickStack functions ## source /var/www/ss-functions #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Message (Begin Script) ####################################### #################################################################################################### ## this is a simple message that announces to the shell the purpose of this bash script ## ## it will only be noticed by sudo users who manually call ss core bash scripts ## ## echo message ## echo -e "${PURPLE}Running ss-install-wordpress-mu-plugins: Reinstalls all the WordPress MU plugins for SlickStack servers (idempotent)... ${NOCOLOR}" sleep "$SLEEP_MESSAGE_BEGIN" #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Cleanup Temporary Files ###################################### #################################################################################################### ## delete tmp files ## rm /tmp/autoloader* rm /tmp/custom-functions* rm /tmp/functions* rm /tmp/xxx-* rm /tmp/object-cache* rm /tmp/clear-caches* rm /tmp/cloudflare* rm /tmp/dashboard-cleanup* rm /tmp/delete-expired-transients* rm /tmp/disable-attachment-pages* rm /tmp/disable-default-runner* rm /tmp/disable-emails* rm /tmp/disable-embeds* rm /tmp/disable-emojis* rm /tmp/disable-empty-trash* rm /tmp/disable-gutenberg* rm /tmp/disable-image-compression* rm /tmp/disable-post-via-email* rm /tmp/disable-xml-rpc* rm /tmp/error-log-monitor* rm /tmp/force-https* rm /tmp/force-strong-hashing* rm /tmp/header-cleanup* rm /tmp/index-autoload* rm /tmp/limit-heartbeat* rm /tmp/maintenance-mode* rm /tmp/minify-html* rm /tmp/plugin-blacklist* rm /tmp/remove-query-strings* rm /tmp/server-status* rm /tmp/sftp-details* rm /tmp/virtual-robotstxt* ## delete (custom) MU plugins temporary files ## # (coming soon) #################################################################################################### #### SS-Muplugs: Ensure MU (Must-Use) Directory Exists + Delete Current MU Plugins ################# #################################################################################################### ## install Linux utilities (Zip, Unzip) in case missing ## apt install zip unzip ## ensure MU (Must-Use) plugins directory exists ## mkdir /var/www/html/wp-content/mu-plugins mkdir /var/www/html/dev/wp-content/mu-plugins mkdir /var/www/html/staging/wp-content/mu-plugins ## delete all currently installed MU (Must-Use) plugins ## rm /var/www/html/wp-content/mu-plugins/* rm /var/www/html/dev/wp-content/mu-plugins/* rm /var/www/html/staging/wp-content/mu-plugins/* #################################################################################################### #### SS-Muplugs: Install Required MU (Must-Use) Plugins + Object Cache ############################# #################################################################################################### ## download Autoloader (required script) files ## wget -O /tmp/autoloader.php http://mirrors.slickstack.io/mu-plugins/autoloader.txt ## download Custom Functions + XXX Notices (required MU plugins) files ## wget -O /tmp/custom-functions.zip http://mirrors.slickstack.io/mu-plugins/custom-functions.zip wget -O /tmp/xxx-common.php http://mirrors.slickstack.io/mu-plugins/xxx-common.txt ## staging site ## wget -O /tmp/disable-emails.zip http://mirrors.slickstack.io/mu-plugins/disable-emails.zip wget -O /tmp/disable-default-runner.zip http://mirrors.slickstack.io/mu-plugins/disable-default-runner.zip ## dev site ?? ## ## download Object Cache (required drop-in plugin) files ## wget -O /tmp/object-cache.php http://mirrors.slickstack.io/mu-plugins/object-cache.txt ## unzip various files ## unzip /tmp/custom-functions.zip -d /tmp unzip /tmp/disable-emails.zip -d /tmp unzip /tmp/disable-default-runner.zip -d /tmp ## delete potentially conflicting Autoloader scripts ## rm /var/www/html/wp-content/plugins/autoloader* rm /var/www/html/staging/wp-content/plugins/autoloader* rm /var/www/html/dev/wp-content/plugins/autoloader* ## delete potentially conflicting normal plugins (with required MU plugins) ## # rm /var/www/html/wp-content/plugins/custom-functions* ## don't delete others until ours is working 100% perfect rm /var/www/html/wp-content/plugins/xxx-common* rm /var/www/html/wp-content/plugins/xxx-notices* rm /var/www/html/wp-content/plugins/xxx-staging* rm /var/www/html/wp-content/plugins/xxx-dev* ## and from staging ## rm /var/www/html/staging/wp-content/plugins/xxx-common* rm /var/www/html/staging/wp-content/plugins/xxx-notices* rm /var/www/html/staging/wp-content/plugins/xxx-staging* rm /var/www/html/staging/wp-content/plugins/xxx-dev* rm /var/www/html/staging/wp-content/plugins/disable-emails* rm /var/www/html/staging/wp-content/plugins/disable-default-runner* ## delete potentially conflicting object caches (drop-in plugins + normal plugins) ## rm /var/www/html/wp-content/object-cache* rm /var/www/html/wp-content/plugins/memcache* rm /var/www/html/wp-content/plugins/memcached* rm /var/www/html/wp-content/plugins/object-cache* rm /var/www/html/wp-content/plugins/redis* rm /var/www/html/staging/wp-content/object-cache* rm /var/www/html/staging/wp-content/plugins/memcache* rm /var/www/html/staging/wp-content/plugins/memcached* rm /var/www/html/staging/wp-content/plugins/object-cache* rm /var/www/html/staging/wp-content/plugins/redis* rm /var/www/html/dev/wp-content/object-cache* rm /var/www/html/dev/wp-content/plugins/memcache* rm /var/www/html/dev/wp-content/plugins/memcached* rm /var/www/html/dev/wp-content/plugins/object-cache* rm /var/www/html/dev/wp-content/plugins/redis* ## copy Autoloader files to destination ## cp /tmp/autoloader.php /var/www/html/wp-content/mu-plugins/autoloader.php cp /tmp/autoloader.php /var/www/html/staging/wp-content/mu-plugins/autoloader.php cp /tmp/autoloader.php /var/www/html/dev/wp-content/mu-plugins/autoloader.php ## copy required MU plugins files to destinations ## cp /tmp/custom-functions /var/www/html/wp-content/mu-plugins/custom-functions cp /tmp/xxx-common.php /var/www/html/wp-content/mu-plugins/xxx-common.php ## and staging ## cp /tmp/custom-functions /var/www/html/staging/wp-content/mu-plugins/custom-functions cp /tmp/xxx-common.php /var/www/html/staging/wp-content/mu-plugins/xxx-common.php cp /tmp/disable-emails /var/www/html/staging/wp-content/mu-plugins/disable-emails cp /tmp/disable-default-runner /var/www/html/staging/wp-content/mu-plugins/disable-default-runner ## and dev ## # cp /tmp/custom-functions /var/www/html/dev/wp-content/mu-plugins/custom-functions # cp /tmp/xxx-common.php /var/www/html/dev/wp-content/mu-plugins/xxx-common.php # cp /tmp/disable-emails /var/www/html/dev/wp-content/mu-plugins/disable-emails # cp /tmp/disable-default-runner /var/www/html/dev/wp-content/mu-plugins/disable-default-runner ## copy Object Cache files to destination ## cp /tmp/object-cache.php /var/www/html/wp-content/object-cache.php cp /tmp/object-cache.php /var/www/html/dev/wp-content/object-cache.php cp /tmp/object-cache.php /var/www/html/staging/wp-content/object-cache.php #################################################################################################### #### SS-Muplugs: Install Custom Functions (MU) Plugin Config File (Required) ####################### #################################################################################################### ## downloads specified functions.php file (otherwise retrieves generic) if none exists ## ## however if the functions.php file already exists it will never be overwritten ## ## install functions.php file if none exists ## if [ ! -f /var/www/html/wp-content/functions.php ] && [ -z "$CUSTOM_FUNCTIONS_SOURCE" ]; then wget -O /tmp/functions.php http://mirrors.slickstack.io/wordpress/functions.txt cp /tmp/functions.php /var/www/html/wp-content/functions.php cp /tmp/functions.php /var/www/html/staging/wp-content/functions.php elif [ ! -f /var/www/html/wp-content/functions.php ] && [ -n "$CUSTOM_FUNCTIONS_SOURCE" ]; then wget -O /tmp/functions.php "$CUSTOM_FUNCTIONS_SOURCE" cp /tmp/functions.php /var/www/html/wp-content/functions.php cp /tmp/functions.php /var/www/html/staging/wp-content/functions.php fi ## install functions.php file to dev site if none exists ## if [ ! -f /var/www/html/dev/wp-content/functions.php ] && [ -z "$CUSTOM_FUNCTIONS_SOURCE" ]; then wget -O /tmp/functions.php http://mirrors.slickstack.io/wordpress/functions.txt # cp /tmp/functions.php /var/www/html/dev/wp-content/functions.php elif [ ! -f /var/www/html/dev/wp-content/functions.php ] && [ -n "$CUSTOM_FUNCTIONS_SOURCE" ]; then wget -O /tmp/functions.php "$CUSTOM_FUNCTIONS_SOURCE" # cp /tmp/functions.php /var/www/html/dev/wp-content/functions.php fi #################################################################################################### #### SS-Muplugs: Install Specified MU (Must-Use) Plugins (Optional) ################################ #################################################################################################### ## below MU plugins are distinct from the required MU plugins that are always included ## ## in the case these are missing the default LittleBizzy plugins are installed ## if [[ "$SS_MU_PLUGINS" == "custom" ]] && [[ -n "$MU_PLUGIN_01_SOURCE" ]] && [[ -n "$MU_PLUGIN_01_DIR" ]]; then ## download specified (custom) MU plugins ## wget -O /tmp/$MU_PLUGIN_01_DIR.zip $MU_PLUGIN_01_SOURCE wget -O /tmp/$MU_PLUGIN_02_DIR.zip $MU_PLUGIN_02_SOURCE wget -O /tmp/$MU_PLUGIN_03_DIR.zip $MU_PLUGIN_03_SOURCE wget -O /tmp/$MU_PLUGIN_04_DIR.zip $MU_PLUGIN_04_SOURCE wget -O /tmp/$MU_PLUGIN_05_DIR.zip $MU_PLUGIN_05_SOURCE wget -O /tmp/$MU_PLUGIN_06_DIR.zip $MU_PLUGIN_06_SOURCE wget -O /tmp/$MU_PLUGIN_07_DIR.zip $MU_PLUGIN_07_SOURCE wget -O /tmp/$MU_PLUGIN_08_DIR.zip $MU_PLUGIN_08_SOURCE wget -O /tmp/$MU_PLUGIN_09_DIR.zip $MU_PLUGIN_09_SOURCE wget -O /tmp/$MU_PLUGIN_10_DIR.zip $MU_PLUGIN_10_SOURCE wget -O /tmp/$MU_PLUGIN_11_DIR.zip $MU_PLUGIN_11_SOURCE wget -O /tmp/$MU_PLUGIN_12_DIR.zip $MU_PLUGIN_12_SOURCE wget -O /tmp/$MU_PLUGIN_13_DIR.zip $MU_PLUGIN_13_SOURCE wget -O /tmp/$MU_PLUGIN_14_DIR.zip $MU_PLUGIN_14_SOURCE wget -O /tmp/$MU_PLUGIN_15_DIR.zip $MU_PLUGIN_15_SOURCE wget -O /tmp/$MU_PLUGIN_16_DIR.zip $MU_PLUGIN_16_SOURCE wget -O /tmp/$MU_PLUGIN_17_DIR.zip $MU_PLUGIN_17_SOURCE wget -O /tmp/$MU_PLUGIN_18_DIR.zip $MU_PLUGIN_18_SOURCE wget -O /tmp/$MU_PLUGIN_19_DIR.zip $MU_PLUGIN_19_SOURCE wget -O /tmp/$MU_PLUGIN_20_DIR.zip $MU_PLUGIN_20_SOURCE wget -O /tmp/$MU_PLUGIN_21_DIR.zip $MU_PLUGIN_21_SOURCE wget -O /tmp/$MU_PLUGIN_22_DIR.zip $MU_PLUGIN_22_SOURCE wget -O /tmp/$MU_PLUGIN_23_DIR.zip $MU_PLUGIN_23_SOURCE wget -O /tmp/$MU_PLUGIN_24_DIR.zip $MU_PLUGIN_24_SOURCE wget -O /tmp/$MU_PLUGIN_25_DIR.zip $MU_PLUGIN_25_SOURCE wget -O /tmp/$MU_PLUGIN_26_DIR.zip $MU_PLUGIN_26_SOURCE wget -O /tmp/$MU_PLUGIN_27_DIR.zip $MU_PLUGIN_27_SOURCE wget -O /tmp/$MU_PLUGIN_28_DIR.zip $MU_PLUGIN_28_SOURCE wget -O /tmp/$MU_PLUGIN_29_DIR.zip $MU_PLUGIN_29_SOURCE wget -O /tmp/$MU_PLUGIN_30_DIR.zip $MU_PLUGIN_30_SOURCE wget -O /tmp/$MU_PLUGIN_31_DIR.zip $MU_PLUGIN_31_SOURCE wget -O /tmp/$MU_PLUGIN_32_DIR.zip $MU_PLUGIN_32_SOURCE wget -O /tmp/$MU_PLUGIN_33_DIR.zip $MU_PLUGIN_33_SOURCE wget -O /tmp/$MU_PLUGIN_34_DIR.zip $MU_PLUGIN_34_SOURCE wget -O /tmp/$MU_PLUGIN_35_DIR.zip $MU_PLUGIN_35_SOURCE wget -O /tmp/$MU_PLUGIN_36_DIR.zip $MU_PLUGIN_36_SOURCE wget -O /tmp/$MU_PLUGIN_37_DIR.zip $MU_PLUGIN_37_SOURCE wget -O /tmp/$MU_PLUGIN_38_DIR.zip $MU_PLUGIN_38_SOURCE wget -O /tmp/$MU_PLUGIN_39_DIR.zip $MU_PLUGIN_39_SOURCE wget -O /tmp/$MU_PLUGIN_40_DIR.zip $MU_PLUGIN_40_SOURCE wget -O /tmp/$MU_PLUGIN_41_DIR.zip $MU_PLUGIN_41_SOURCE wget -O /tmp/$MU_PLUGIN_42_DIR.zip $MU_PLUGIN_42_SOURCE wget -O /tmp/$MU_PLUGIN_43_DIR.zip $MU_PLUGIN_43_SOURCE wget -O /tmp/$MU_PLUGIN_44_DIR.zip $MU_PLUGIN_44_SOURCE wget -O /tmp/$MU_PLUGIN_45_DIR.zip $MU_PLUGIN_45_SOURCE wget -O /tmp/$MU_PLUGIN_46_DIR.zip $MU_PLUGIN_46_SOURCE wget -O /tmp/$MU_PLUGIN_47_DIR.zip $MU_PLUGIN_47_SOURCE wget -O /tmp/$MU_PLUGIN_48_DIR.zip $MU_PLUGIN_48_SOURCE wget -O /tmp/$MU_PLUGIN_49_DIR.zip $MU_PLUGIN_49_SOURCE wget -O /tmp/$MU_PLUGIN_50_DIR.zip $MU_PLUGIN_50_SOURCE wget -O /tmp/$MU_PLUGIN_51_DIR.zip $MU_PLUGIN_51_SOURCE wget -O /tmp/$MU_PLUGIN_52_DIR.zip $MU_PLUGIN_52_SOURCE wget -O /tmp/$MU_PLUGIN_53_DIR.zip $MU_PLUGIN_53_SOURCE wget -O /tmp/$MU_PLUGIN_54_DIR.zip $MU_PLUGIN_54_SOURCE wget -O /tmp/$MU_PLUGIN_55_DIR.zip $MU_PLUGIN_55_SOURCE wget -O /tmp/$MU_PLUGIN_56_DIR.zip $MU_PLUGIN_56_SOURCE wget -O /tmp/$MU_PLUGIN_57_DIR.zip $MU_PLUGIN_57_SOURCE wget -O /tmp/$MU_PLUGIN_58_DIR.zip $MU_PLUGIN_58_SOURCE wget -O /tmp/$MU_PLUGIN_59_DIR.zip $MU_PLUGIN_59_SOURCE wget -O /tmp/$MU_PLUGIN_60_DIR.zip $MU_PLUGIN_60_SOURCE wget -O /tmp/$MU_PLUGIN_61_DIR.zip $MU_PLUGIN_61_SOURCE wget -O /tmp/$MU_PLUGIN_62_DIR.zip $MU_PLUGIN_62_SOURCE wget -O /tmp/$MU_PLUGIN_63_DIR.zip $MU_PLUGIN_63_SOURCE wget -O /tmp/$MU_PLUGIN_64_DIR.zip $MU_PLUGIN_64_SOURCE wget -O /tmp/$MU_PLUGIN_65_DIR.zip $MU_PLUGIN_65_SOURCE wget -O /tmp/$MU_PLUGIN_66_DIR.zip $MU_PLUGIN_66_SOURCE wget -O /tmp/$MU_PLUGIN_67_DIR.zip $MU_PLUGIN_67_SOURCE wget -O /tmp/$MU_PLUGIN_68_DIR.zip $MU_PLUGIN_68_SOURCE wget -O /tmp/$MU_PLUGIN_69_DIR.zip $MU_PLUGIN_69_SOURCE wget -O /tmp/$MU_PLUGIN_70_DIR.zip $MU_PLUGIN_70_SOURCE wget -O /tmp/$MU_PLUGIN_71_DIR.zip $MU_PLUGIN_71_SOURCE wget -O /tmp/$MU_PLUGIN_72_DIR.zip $MU_PLUGIN_72_SOURCE wget -O /tmp/$MU_PLUGIN_73_DIR.zip $MU_PLUGIN_73_SOURCE wget -O /tmp/$MU_PLUGIN_74_DIR.zip $MU_PLUGIN_74_SOURCE wget -O /tmp/$MU_PLUGIN_75_DIR.zip $MU_PLUGIN_75_SOURCE wget -O /tmp/$MU_PLUGIN_76_DIR.zip $MU_PLUGIN_76_SOURCE wget -O /tmp/$MU_PLUGIN_77_DIR.zip $MU_PLUGIN_77_SOURCE wget -O /tmp/$MU_PLUGIN_78_DIR.zip $MU_PLUGIN_78_SOURCE wget -O /tmp/$MU_PLUGIN_79_DIR.zip $MU_PLUGIN_79_SOURCE wget -O /tmp/$MU_PLUGIN_80_DIR.zip $MU_PLUGIN_80_SOURCE wget -O /tmp/$MU_PLUGIN_81_DIR.zip $MU_PLUGIN_81_SOURCE wget -O /tmp/$MU_PLUGIN_82_DIR.zip $MU_PLUGIN_82_SOURCE wget -O /tmp/$MU_PLUGIN_83_DIR.zip $MU_PLUGIN_83_SOURCE wget -O /tmp/$MU_PLUGIN_84_DIR.zip $MU_PLUGIN_84_SOURCE wget -O /tmp/$MU_PLUGIN_85_DIR.zip $MU_PLUGIN_85_SOURCE wget -O /tmp/$MU_PLUGIN_86_DIR.zip $MU_PLUGIN_86_SOURCE wget -O /tmp/$MU_PLUGIN_87_DIR.zip $MU_PLUGIN_87_SOURCE wget -O /tmp/$MU_PLUGIN_88_DIR.zip $MU_PLUGIN_88_SOURCE wget -O /tmp/$MU_PLUGIN_89_DIR.zip $MU_PLUGIN_89_SOURCE wget -O /tmp/$MU_PLUGIN_90_DIR.zip $MU_PLUGIN_90_SOURCE wget -O /tmp/$MU_PLUGIN_91_DIR.zip $MU_PLUGIN_91_SOURCE wget -O /tmp/$MU_PLUGIN_92_DIR.zip $MU_PLUGIN_92_SOURCE wget -O /tmp/$MU_PLUGIN_93_DIR.zip $MU_PLUGIN_93_SOURCE wget -O /tmp/$MU_PLUGIN_94_DIR.zip $MU_PLUGIN_94_SOURCE wget -O /tmp/$MU_PLUGIN_95_DIR.zip $MU_PLUGIN_95_SOURCE wget -O /tmp/$MU_PLUGIN_96_DIR.zip $MU_PLUGIN_96_SOURCE wget -O /tmp/$MU_PLUGIN_97_DIR.zip $MU_PLUGIN_97_SOURCE wget -O /tmp/$MU_PLUGIN_98_DIR.zip $MU_PLUGIN_98_SOURCE wget -O /tmp/$MU_PLUGIN_99_DIR.zip $MU_PLUGIN_99_SOURCE ## unzip them all ## unzip /tmp/$MU_PLUGIN_01_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_02_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_03_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_04_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_05_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_06_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_07_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_08_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_09_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_10_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_11_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_12_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_13_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_14_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_15_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_16_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_17_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_18_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_19_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_20_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_21_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_22_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_23_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_24_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_25_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_26_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_27_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_28_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_29_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_30_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_31_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_32_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_33_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_34_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_35_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_36_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_37_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_38_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_39_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_40_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_41_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_42_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_43_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_44_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_45_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_46_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_47_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_48_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_49_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_50_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_51_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_52_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_53_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_54_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_55_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_56_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_57_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_58_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_59_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_60_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_61_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_62_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_63_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_64_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_65_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_66_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_67_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_68_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_69_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_70_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_71_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_72_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_73_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_74_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_75_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_76_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_77_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_78_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_79_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_80_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_81_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_82_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_83_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_84_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_85_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_86_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_87_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_88_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_89_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_90_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_91_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_92_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_93_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_94_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_95_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_96_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_97_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_98_DIR.zip -d /tmp unzip /tmp/$MU_PLUGIN_99_DIR.zip -d /tmp ## copy to destinations ## cp /tmp/$MU_PLUGIN_01_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_01_DIR cp /tmp/$MU_PLUGIN_02_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_02_DIR cp /tmp/$MU_PLUGIN_03_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_03_DIR cp /tmp/$MU_PLUGIN_04_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_04_DIR cp /tmp/$MU_PLUGIN_05_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_05_DIR cp /tmp/$MU_PLUGIN_06_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_06_DIR cp /tmp/$MU_PLUGIN_07_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_07_DIR cp /tmp/$MU_PLUGIN_08_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_08_DIR cp /tmp/$MU_PLUGIN_09_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_09_DIR cp /tmp/$MU_PLUGIN_10_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_10_DIR cp /tmp/$MU_PLUGIN_11_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_11_DIR cp /tmp/$MU_PLUGIN_12_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_12_DIR cp /tmp/$MU_PLUGIN_13_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_13_DIR cp /tmp/$MU_PLUGIN_14_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_14_DIR cp /tmp/$MU_PLUGIN_15_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_15_DIR cp /tmp/$MU_PLUGIN_16_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_16_DIR cp /tmp/$MU_PLUGIN_17_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_17_DIR cp /tmp/$MU_PLUGIN_18_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_18_DIR cp /tmp/$MU_PLUGIN_19_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_19_DIR cp /tmp/$MU_PLUGIN_20_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_20_DIR cp /tmp/$MU_PLUGIN_21_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_21_DIR cp /tmp/$MU_PLUGIN_22_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_22_DIR cp /tmp/$MU_PLUGIN_23_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_23_DIR cp /tmp/$MU_PLUGIN_24_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_24_DIR cp /tmp/$MU_PLUGIN_25_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_25_DIR cp /tmp/$MU_PLUGIN_26_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_26_DIR cp /tmp/$MU_PLUGIN_27_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_27_DIR cp /tmp/$MU_PLUGIN_28_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_28_DIR cp /tmp/$MU_PLUGIN_29_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_29_DIR cp /tmp/$MU_PLUGIN_30_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_30_DIR cp /tmp/$MU_PLUGIN_31_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_31_DIR cp /tmp/$MU_PLUGIN_32_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_32_DIR cp /tmp/$MU_PLUGIN_33_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_33_DIR cp /tmp/$MU_PLUGIN_34_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_34_DIR cp /tmp/$MU_PLUGIN_35_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_35_DIR cp /tmp/$MU_PLUGIN_36_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_36_DIR cp /tmp/$MU_PLUGIN_37_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_37_DIR cp /tmp/$MU_PLUGIN_38_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_38_DIR cp /tmp/$MU_PLUGIN_39_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_39_DIR cp /tmp/$MU_PLUGIN_40_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_40_DIR cp /tmp/$MU_PLUGIN_41_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_41_DIR cp /tmp/$MU_PLUGIN_42_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_42_DIR cp /tmp/$MU_PLUGIN_43_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_43_DIR cp /tmp/$MU_PLUGIN_44_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_44_DIR cp /tmp/$MU_PLUGIN_45_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_45_DIR cp /tmp/$MU_PLUGIN_46_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_46_DIR cp /tmp/$MU_PLUGIN_47_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_47_DIR cp /tmp/$MU_PLUGIN_48_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_48_DIR cp /tmp/$MU_PLUGIN_49_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_49_DIR cp /tmp/$MU_PLUGIN_50_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_50_DIR cp /tmp/$MU_PLUGIN_51_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_51_DIR cp /tmp/$MU_PLUGIN_52_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_52_DIR cp /tmp/$MU_PLUGIN_53_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_53_DIR cp /tmp/$MU_PLUGIN_54_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_54_DIR cp /tmp/$MU_PLUGIN_55_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_55_DIR cp /tmp/$MU_PLUGIN_56_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_56_DIR cp /tmp/$MU_PLUGIN_57_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_57_DIR cp /tmp/$MU_PLUGIN_58_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_58_DIR cp /tmp/$MU_PLUGIN_59_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_59_DIR cp /tmp/$MU_PLUGIN_60_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_60_DIR cp /tmp/$MU_PLUGIN_61_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_61_DIR cp /tmp/$MU_PLUGIN_62_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_62_DIR cp /tmp/$MU_PLUGIN_63_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_63_DIR cp /tmp/$MU_PLUGIN_64_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_64_DIR cp /tmp/$MU_PLUGIN_65_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_65_DIR cp /tmp/$MU_PLUGIN_66_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_66_DIR cp /tmp/$MU_PLUGIN_67_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_67_DIR cp /tmp/$MU_PLUGIN_68_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_68_DIR cp /tmp/$MU_PLUGIN_69_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_69_DIR cp /tmp/$MU_PLUGIN_70_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_70_DIR cp /tmp/$MU_PLUGIN_71_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_71_DIR cp /tmp/$MU_PLUGIN_72_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_72_DIR cp /tmp/$MU_PLUGIN_73_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_73_DIR cp /tmp/$MU_PLUGIN_74_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_74_DIR cp /tmp/$MU_PLUGIN_75_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_75_DIR cp /tmp/$MU_PLUGIN_76_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_76_DIR cp /tmp/$MU_PLUGIN_77_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_77_DIR cp /tmp/$MU_PLUGIN_78_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_78_DIR cp /tmp/$MU_PLUGIN_79_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_79_DIR cp /tmp/$MU_PLUGIN_80_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_80_DIR cp /tmp/$MU_PLUGIN_81_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_81_DIR cp /tmp/$MU_PLUGIN_82_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_82_DIR cp /tmp/$MU_PLUGIN_83_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_83_DIR cp /tmp/$MU_PLUGIN_84_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_84_DIR cp /tmp/$MU_PLUGIN_85_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_85_DIR cp /tmp/$MU_PLUGIN_86_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_86_DIR cp /tmp/$MU_PLUGIN_87_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_87_DIR cp /tmp/$MU_PLUGIN_88_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_88_DIR cp /tmp/$MU_PLUGIN_89_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_89_DIR cp /tmp/$MU_PLUGIN_90_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_90_DIR cp /tmp/$MU_PLUGIN_91_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_91_DIR cp /tmp/$MU_PLUGIN_92_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_92_DIR cp /tmp/$MU_PLUGIN_93_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_93_DIR cp /tmp/$MU_PLUGIN_94_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_94_DIR cp /tmp/$MU_PLUGIN_95_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_95_DIR cp /tmp/$MU_PLUGIN_96_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_96_DIR cp /tmp/$MU_PLUGIN_97_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_97_DIR cp /tmp/$MU_PLUGIN_98_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_98_DIR cp /tmp/$MU_PLUGIN_99_DIR /var/www/html/wp-content/mu-plugins/$MU_PLUGIN_99_DIR ## copy to destinations (staging subdirectory) ## cp /tmp/$MU_PLUGIN_01_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_01_DIR cp /tmp/$MU_PLUGIN_02_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_02_DIR cp /tmp/$MU_PLUGIN_03_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_03_DIR cp /tmp/$MU_PLUGIN_04_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_04_DIR cp /tmp/$MU_PLUGIN_05_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_05_DIR cp /tmp/$MU_PLUGIN_06_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_06_DIR cp /tmp/$MU_PLUGIN_07_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_07_DIR cp /tmp/$MU_PLUGIN_08_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_08_DIR cp /tmp/$MU_PLUGIN_09_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_09_DIR cp /tmp/$MU_PLUGIN_10_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_10_DIR cp /tmp/$MU_PLUGIN_11_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_11_DIR cp /tmp/$MU_PLUGIN_12_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_12_DIR cp /tmp/$MU_PLUGIN_13_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_13_DIR cp /tmp/$MU_PLUGIN_14_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_14_DIR cp /tmp/$MU_PLUGIN_15_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_15_DIR cp /tmp/$MU_PLUGIN_16_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_16_DIR cp /tmp/$MU_PLUGIN_17_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_17_DIR cp /tmp/$MU_PLUGIN_18_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_18_DIR cp /tmp/$MU_PLUGIN_19_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_19_DIR cp /tmp/$MU_PLUGIN_20_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_20_DIR cp /tmp/$MU_PLUGIN_21_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_21_DIR cp /tmp/$MU_PLUGIN_22_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_22_DIR cp /tmp/$MU_PLUGIN_23_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_23_DIR cp /tmp/$MU_PLUGIN_24_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_24_DIR cp /tmp/$MU_PLUGIN_25_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_25_DIR cp /tmp/$MU_PLUGIN_26_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_26_DIR cp /tmp/$MU_PLUGIN_27_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_27_DIR cp /tmp/$MU_PLUGIN_28_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_28_DIR cp /tmp/$MU_PLUGIN_29_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_29_DIR cp /tmp/$MU_PLUGIN_30_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_30_DIR cp /tmp/$MU_PLUGIN_31_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_31_DIR cp /tmp/$MU_PLUGIN_32_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_32_DIR cp /tmp/$MU_PLUGIN_33_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_33_DIR cp /tmp/$MU_PLUGIN_34_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_34_DIR cp /tmp/$MU_PLUGIN_35_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_35_DIR cp /tmp/$MU_PLUGIN_36_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_36_DIR cp /tmp/$MU_PLUGIN_37_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_37_DIR cp /tmp/$MU_PLUGIN_38_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_38_DIR cp /tmp/$MU_PLUGIN_39_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_39_DIR cp /tmp/$MU_PLUGIN_40_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_40_DIR cp /tmp/$MU_PLUGIN_41_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_41_DIR cp /tmp/$MU_PLUGIN_42_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_42_DIR cp /tmp/$MU_PLUGIN_43_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_43_DIR cp /tmp/$MU_PLUGIN_44_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_44_DIR cp /tmp/$MU_PLUGIN_45_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_45_DIR cp /tmp/$MU_PLUGIN_46_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_46_DIR cp /tmp/$MU_PLUGIN_47_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_47_DIR cp /tmp/$MU_PLUGIN_48_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_48_DIR cp /tmp/$MU_PLUGIN_49_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_49_DIR cp /tmp/$MU_PLUGIN_50_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_50_DIR cp /tmp/$MU_PLUGIN_51_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_51_DIR cp /tmp/$MU_PLUGIN_52_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_52_DIR cp /tmp/$MU_PLUGIN_53_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_53_DIR cp /tmp/$MU_PLUGIN_54_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_54_DIR cp /tmp/$MU_PLUGIN_55_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_55_DIR cp /tmp/$MU_PLUGIN_56_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_56_DIR cp /tmp/$MU_PLUGIN_57_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_57_DIR cp /tmp/$MU_PLUGIN_58_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_58_DIR cp /tmp/$MU_PLUGIN_59_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_59_DIR cp /tmp/$MU_PLUGIN_60_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_60_DIR cp /tmp/$MU_PLUGIN_61_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_61_DIR cp /tmp/$MU_PLUGIN_62_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_62_DIR cp /tmp/$MU_PLUGIN_63_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_63_DIR cp /tmp/$MU_PLUGIN_64_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_64_DIR cp /tmp/$MU_PLUGIN_65_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_65_DIR cp /tmp/$MU_PLUGIN_66_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_66_DIR cp /tmp/$MU_PLUGIN_67_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_67_DIR cp /tmp/$MU_PLUGIN_68_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_68_DIR cp /tmp/$MU_PLUGIN_69_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_69_DIR cp /tmp/$MU_PLUGIN_70_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_70_DIR cp /tmp/$MU_PLUGIN_71_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_71_DIR cp /tmp/$MU_PLUGIN_72_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_72_DIR cp /tmp/$MU_PLUGIN_73_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_73_DIR cp /tmp/$MU_PLUGIN_74_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_74_DIR cp /tmp/$MU_PLUGIN_75_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_75_DIR cp /tmp/$MU_PLUGIN_76_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_76_DIR cp /tmp/$MU_PLUGIN_77_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_77_DIR cp /tmp/$MU_PLUGIN_78_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_78_DIR cp /tmp/$MU_PLUGIN_79_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_79_DIR cp /tmp/$MU_PLUGIN_80_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_80_DIR cp /tmp/$MU_PLUGIN_81_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_81_DIR cp /tmp/$MU_PLUGIN_82_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_82_DIR cp /tmp/$MU_PLUGIN_83_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_83_DIR cp /tmp/$MU_PLUGIN_84_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_84_DIR cp /tmp/$MU_PLUGIN_85_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_85_DIR cp /tmp/$MU_PLUGIN_86_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_86_DIR cp /tmp/$MU_PLUGIN_87_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_87_DIR cp /tmp/$MU_PLUGIN_88_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_88_DIR cp /tmp/$MU_PLUGIN_89_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_89_DIR cp /tmp/$MU_PLUGIN_90_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_90_DIR cp /tmp/$MU_PLUGIN_91_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_91_DIR cp /tmp/$MU_PLUGIN_92_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_92_DIR cp /tmp/$MU_PLUGIN_93_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_93_DIR cp /tmp/$MU_PLUGIN_94_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_94_DIR cp /tmp/$MU_PLUGIN_95_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_95_DIR cp /tmp/$MU_PLUGIN_96_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_96_DIR cp /tmp/$MU_PLUGIN_97_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_97_DIR cp /tmp/$MU_PLUGIN_98_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_98_DIR cp /tmp/$MU_PLUGIN_99_DIR /var/www/html/staging/wp-content/mu-plugins/$MU_PLUGIN_99_DIR ## copy to destinations (dev subdirectory) ## # cp /tmp/$MU_PLUGIN_01_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_01_DIR # cp /tmp/$MU_PLUGIN_02_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_02_DIR # cp /tmp/$MU_PLUGIN_03_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_03_DIR # cp /tmp/$MU_PLUGIN_04_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_04_DIR # cp /tmp/$MU_PLUGIN_05_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_05_DIR # cp /tmp/$MU_PLUGIN_06_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_06_DIR # cp /tmp/$MU_PLUGIN_07_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_07_DIR # cp /tmp/$MU_PLUGIN_08_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_08_DIR # cp /tmp/$MU_PLUGIN_09_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_09_DIR # cp /tmp/$MU_PLUGIN_10_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_10_DIR # cp /tmp/$MU_PLUGIN_11_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_11_DIR # cp /tmp/$MU_PLUGIN_12_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_12_DIR # cp /tmp/$MU_PLUGIN_13_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_13_DIR # cp /tmp/$MU_PLUGIN_14_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_14_DIR # cp /tmp/$MU_PLUGIN_15_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_15_DIR # cp /tmp/$MU_PLUGIN_16_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_16_DIR # cp /tmp/$MU_PLUGIN_17_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_17_DIR # cp /tmp/$MU_PLUGIN_18_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_18_DIR # cp /tmp/$MU_PLUGIN_19_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_19_DIR # cp /tmp/$MU_PLUGIN_20_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_20_DIR # cp /tmp/$MU_PLUGIN_21_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_21_DIR # cp /tmp/$MU_PLUGIN_22_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_22_DIR # cp /tmp/$MU_PLUGIN_23_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_23_DIR # cp /tmp/$MU_PLUGIN_24_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_24_DIR # cp /tmp/$MU_PLUGIN_25_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_25_DIR # cp /tmp/$MU_PLUGIN_26_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_26_DIR # cp /tmp/$MU_PLUGIN_27_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_27_DIR # cp /tmp/$MU_PLUGIN_28_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_28_DIR # cp /tmp/$MU_PLUGIN_29_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_29_DIR # cp /tmp/$MU_PLUGIN_30_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_30_DIR # cp /tmp/$MU_PLUGIN_31_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_31_DIR # cp /tmp/$MU_PLUGIN_32_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_32_DIR # cp /tmp/$MU_PLUGIN_33_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_33_DIR # cp /tmp/$MU_PLUGIN_34_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_34_DIR # cp /tmp/$MU_PLUGIN_35_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_35_DIR # cp /tmp/$MU_PLUGIN_36_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_36_DIR # cp /tmp/$MU_PLUGIN_37_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_37_DIR # cp /tmp/$MU_PLUGIN_38_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_38_DIR # cp /tmp/$MU_PLUGIN_39_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_39_DIR # cp /tmp/$MU_PLUGIN_40_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_40_DIR # cp /tmp/$MU_PLUGIN_41_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_41_DIR # cp /tmp/$MU_PLUGIN_42_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_42_DIR # cp /tmp/$MU_PLUGIN_43_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_43_DIR # cp /tmp/$MU_PLUGIN_44_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_44_DIR # cp /tmp/$MU_PLUGIN_45_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_45_DIR # cp /tmp/$MU_PLUGIN_46_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_46_DIR # cp /tmp/$MU_PLUGIN_47_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_47_DIR # cp /tmp/$MU_PLUGIN_48_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_48_DIR # cp /tmp/$MU_PLUGIN_49_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_49_DIR # cp /tmp/$MU_PLUGIN_50_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_50_DIR # cp /tmp/$MU_PLUGIN_51_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_51_DIR # cp /tmp/$MU_PLUGIN_52_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_52_DIR # cp /tmp/$MU_PLUGIN_53_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_53_DIR # cp /tmp/$MU_PLUGIN_54_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_54_DIR # cp /tmp/$MU_PLUGIN_55_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_55_DIR # cp /tmp/$MU_PLUGIN_56_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_56_DIR # cp /tmp/$MU_PLUGIN_57_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_57_DIR # cp /tmp/$MU_PLUGIN_58_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_58_DIR # cp /tmp/$MU_PLUGIN_59_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_59_DIR # cp /tmp/$MU_PLUGIN_60_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_60_DIR # cp /tmp/$MU_PLUGIN_61_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_61_DIR # cp /tmp/$MU_PLUGIN_62_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_62_DIR # cp /tmp/$MU_PLUGIN_63_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_63_DIR # cp /tmp/$MU_PLUGIN_64_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_64_DIR # cp /tmp/$MU_PLUGIN_65_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_65_DIR # cp /tmp/$MU_PLUGIN_66_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_66_DIR # cp /tmp/$MU_PLUGIN_67_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_67_DIR # cp /tmp/$MU_PLUGIN_68_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_68_DIR # cp /tmp/$MU_PLUGIN_69_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_69_DIR # cp /tmp/$MU_PLUGIN_70_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_70_DIR # cp /tmp/$MU_PLUGIN_71_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_71_DIR # cp /tmp/$MU_PLUGIN_72_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_72_DIR # cp /tmp/$MU_PLUGIN_73_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_73_DIR # cp /tmp/$MU_PLUGIN_74_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_74_DIR # cp /tmp/$MU_PLUGIN_75_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_75_DIR # cp /tmp/$MU_PLUGIN_76_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_76_DIR # cp /tmp/$MU_PLUGIN_77_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_77_DIR # cp /tmp/$MU_PLUGIN_78_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_78_DIR # cp /tmp/$MU_PLUGIN_79_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_79_DIR # cp /tmp/$MU_PLUGIN_80_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_80_DIR # cp /tmp/$MU_PLUGIN_81_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_81_DIR # cp /tmp/$MU_PLUGIN_82_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_82_DIR # cp /tmp/$MU_PLUGIN_83_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_83_DIR # cp /tmp/$MU_PLUGIN_84_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_84_DIR # cp /tmp/$MU_PLUGIN_85_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_85_DIR # cp /tmp/$MU_PLUGIN_86_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_86_DIR # cp /tmp/$MU_PLUGIN_87_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_87_DIR # cp /tmp/$MU_PLUGIN_88_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_88_DIR # cp /tmp/$MU_PLUGIN_89_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_89_DIR # cp /tmp/$MU_PLUGIN_90_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_90_DIR # cp /tmp/$MU_PLUGIN_91_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_91_DIR # cp /tmp/$MU_PLUGIN_92_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_92_DIR # cp /tmp/$MU_PLUGIN_93_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_93_DIR # cp /tmp/$MU_PLUGIN_94_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_94_DIR # cp /tmp/$MU_PLUGIN_95_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_95_DIR # cp /tmp/$MU_PLUGIN_96_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_96_DIR # cp /tmp/$MU_PLUGIN_97_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_97_DIR # cp /tmp/$MU_PLUGIN_98_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_98_DIR # cp /tmp/$MU_PLUGIN_99_DIR /var/www/html/dev/wp-content/mu-plugins/$MU_PLUGIN_99_DIR else ## otherwise download default LittleBizzy MU plugins ## wget -O /tmp/clear-caches.zip http://mirrors.slickstack.io/mu-plugins/clear-caches.zip wget -O /tmp/cloudflare.zip http://mirrors.slickstack.io/mu-plugins/cloudflare.zip wget -O /tmp/dashboard-cleanup.zip http://mirrors.slickstack.io/mu-plugins/dashboard-cleanup.zip wget -O /tmp/delete-expired-transients.zip http://mirrors.slickstack.io/mu-plugins/delete-expired-transients.zip wget -O /tmp/disable-attachment-pages.zip http://mirrors.slickstack.io/mu-plugins/disable-attachment-pages.zip wget -O /tmp/disable-embeds.zip http://mirrors.slickstack.io/mu-plugins/disable-embeds.zip wget -O /tmp/disable-emojis.zip http://mirrors.slickstack.io/mu-plugins/disable-emojis.zip wget -O /tmp/disable-empty-trash.zip http://mirrors.slickstack.io/mu-plugins/disable-empty-trash.zip wget -O /tmp/disable-gutenberg.zip http://mirrors.slickstack.io/mu-plugins/disable-gutenberg.zip wget -O /tmp/disable-image-compression.zip http://mirrors.slickstack.io/mu-plugins/disable-image-compression.zip wget -O /tmp/disable-post-via-email.zip http://mirrors.slickstack.io/mu-plugins/disable-post-via-email.zip wget -O /tmp/disable-xml-rpc.zip http://mirrors.slickstack.io/mu-plugins/disable-xml-rpc.zip wget -O /tmp/force-https.zip http://mirrors.slickstack.io/mu-plugins/force-https.zip wget -O /tmp/force-strong-hashing.zip http://mirrors.slickstack.io/mu-plugins/force-strong-hashing.zip wget -O /tmp/header-cleanup.zip http://mirrors.slickstack.io/mu-plugins/header-cleanup.zip wget -O /tmp/limit-heartbeat.zip http://mirrors.slickstack.io/mu-plugins/limit-heartbeat.zip wget -O /tmp/minify-html.zip http://mirrors.slickstack.io/mu-plugins/minify-html.zip wget -O /tmp/plugin-blacklist.zip http://mirrors.slickstack.io/mu-plugins/plugin-blacklist.zip wget -O /tmp/sftp-details.zip http://mirrors.slickstack.io/mu-plugins/sftp-details.zip wget -O /tmp/virtual-robotstxt.zip http://mirrors.slickstack.io/mu-plugins/virtual-robotstxt.zip ## unzip them all ## unzip /tmp/clear-caches.zip -d /tmp unzip /tmp/cloudflare.zip -d /tmp unzip /tmp/dashboard-cleanup.zip -d /tmp unzip /tmp/delete-expired-transients.zip -d /tmp unzip /tmp/disable-attachment-pages.zip -d /tmp unzip /tmp/disable-embeds.zip -d /tmp unzip /tmp/disable-emojis.zip -d /tmp unzip /tmp/disable-empty-trash.zip -d /tmp unzip /tmp/disable-gutenberg.zip -d /tmp unzip /tmp/disable-image-compression.zip -d /tmp unzip /tmp/disable-post-via-email.zip -d /tmp unzip /tmp/disable-xml-rpc.zip -d /tmp unzip /tmp/force-https.zip -d /tmp unzip /tmp/force-strong-hashing.zip -d /tmp unzip /tmp/header-cleanup.zip -d /tmp unzip /tmp/limit-heartbeat.zip -d /tmp unzip /tmp/minify-html.zip -d /tmp unzip /tmp/plugin-blacklist.zip -d /tmp unzip /tmp/sftp-details.zip -d /tmp unzip /tmp/virtual-robotstxt.zip -d /tmp ## delete plugins instances (conflicting namespaces or previous namespaces) ## rm /var/www/html/wp-content/plugins/clear-caches* rm /var/www/html/staging/wp-content/plugins/clear-caches* rm /var/www/html/dev/wp-content/plugins/clear-caches* rm /var/www/html/wp-content/plugins/cloudflare* rm /var/www/html/staging/wp-content/plugins/cloudflare* rm /var/www/html/dev/wp-content/plugins/cloudflare* rm /var/www/html/wp-content/plugins/cf-littlebizzy* ## previous CloudFlare namespace rm /var/www/html/staging/wp-content/plugins/cf-littlebizzy* ## previous CloudFlare namespace rm /var/www/html/dev/wp-content/plugins/cf-littlebizzy* ## previous CloudFlare namespace rm /var/www/html/wp-content/plugins/dashboard-cleanup* rm /var/www/html/staging/wp-content/plugins/dashboard-cleanup* rm /var/www/html/dev/wp-content/plugins/dashboard-cleanup* rm /var/www/html/wp-content/plugins/delete-expired-transients* rm /var/www/html/staging/wp-content/plugins/delete-expired-transients* rm /var/www/html/dev/wp-content/plugins/delete-expired-transients* rm /var/www/html/wp-content/plugins/disable-attachment-pages* rm /var/www/html/staging/wp-content/plugins/disable-attachment-pages* rm /var/www/html/dev/wp-content/plugins/disable-attachment-pages* rm /var/www/html/wp-content/plugins/disable-embeds* rm /var/www/html/staging/wp-content/plugins/disable-embeds* rm /var/www/html/dev/wp-content/plugins/disable-embeds* rm /var/www/html/wp-content/plugins/disable-emojis* rm /var/www/html/staging/wp-content/plugins/disable-emojis* rm /var/www/html/dev/wp-content/plugins/disable-emojis* rm /var/www/html/wp-content/plugins/disable-empty-trash* rm /var/www/html/staging/wp-content/plugins/disable-empty-trash* rm /var/www/html/dev/wp-content/plugins/disable-empty-trash* rm /var/www/html/wp-content/plugins/disable-gutenberg* rm /var/www/html/staging/wp-content/plugins/disable-gutenberg* rm /var/www/html/dev/wp-content/plugins/disable-gutenberg* rm /var/www/html/wp-content/plugins/disable-image-compression* rm /var/www/html/staging/wp-content/plugins/disable-image-compression* rm /var/www/html/dev/wp-content/plugins/disable-image-compression* rm /var/www/html/wp-content/plugins/disable-post-via-email* rm /var/www/html/staging/wp-content/plugins/disable-post-via-email* rm /var/www/html/dev/wp-content/plugins/disable-post-via-email* rm /var/www/html/wp-content/plugins/disable-xml-rpc* rm /var/www/html/staging/wp-content/plugins/disable-xml-rpc* rm /var/www/html/dev/wp-content/plugins/disable-xml-rpc* rm /var/www/html/wp-content/plugins/error-log-monitor* rm /var/www/html/staging/wp-content/plugins/error-log-monitor* rm /var/www/html/dev/wp-content/plugins/error-log-monitor* rm /var/www/html/wp-content/plugins/force-https* rm /var/www/html/staging/wp-content/plugins/force-https* rm /var/www/html/dev/wp-content/plugins/force-https* rm /var/www/html/wp-content/plugins/force-strong-hashing* rm /var/www/html/staging/wp-content/plugins/force-strong-hashing* rm /var/www/html/dev/wp-content/plugins/force-strong-hashing* rm /var/www/html/wp-content/plugins/header-cleanup* rm /var/www/html/staging/wp-content/plugins/header-cleanup* rm /var/www/html/dev/wp-content/plugins/header-cleanup* rm /var/www/html/wp-content/plugins/index-autoload* rm /var/www/html/staging/wp-content/plugins/index-autoload* rm /var/www/html/dev/wp-content/plugins/index-autoload* rm /var/www/html/wp-content/plugins/limit-heartbeat* rm /var/www/html/staging/wp-content/plugins/limit-heartbeat* rm /var/www/html/dev/wp-content/plugins/limit-heartbeat* # rm /var/www/html/wp-content/plugins/maintenance-mode* # rm /var/www/html/dev/wp-content/plugins/maintenance-mode* # rm /var/www/html/staging/wp-content/plugins/maintenance-mode* rm /var/www/html/wp-content/plugins/minify-html* rm /var/www/html/staging/wp-content/plugins/minify-html* rm /var/www/html/dev/wp-content/plugins/minify-html* rm /var/www/html/wp-content/plugins/plugin-blacklist* rm /var/www/html/staging/wp-content/plugins/plugin-blacklist* rm /var/www/html/dev/wp-content/plugins/plugin-blacklist* rm /var/www/html/wp-content/plugins/purge-them-all* ## previous Clear Caches namespace rm /var/www/html/staging/wp-content/plugins/purge-them-all* ## previous Clear Caches namespace rm /var/www/html/dev/wp-content/plugins/purge-them-all* ## previous Clear Caches namespace rm /var/www/html/wp-content/plugins/remove-query-strings* rm /var/www/html/staging/wp-content/plugins/remove-query-strings* rm /var/www/html/dev/wp-content/plugins/remove-query-strings* rm /var/www/html/wp-content/plugins/sftp-details* rm /var/www/html/staging/wp-content/plugins/sftp-details* rm /var/www/html/dev/wp-content/plugins/sftp-details* rm /var/www/html/wp-content/plugins/virtual-robotstxt* rm /var/www/html/staging/wp-content/plugins/virtual-robotstxt* rm /var/www/html/dev/wp-content/plugins/virtual-robotstxt* ## copy to destination ## cp /tmp/clear-caches /var/www/html/wp-content/mu-plugins/clear-caches cp /tmp/clear-caches /var/www/html/staging/wp-content/mu-plugins/clear-caches # cp /tmp/clear-caches /var/www/html/dev/wp-content/mu-plugins/clear-caches cp /tmp/cloudflare /var/www/html/wp-content/mu-plugins/cloudflare cp /tmp/cloudflare /var/www/html/staging/wp-content/mu-plugins/cloudflare # cp /tmp/cloudflare /var/www/html/dev/wp-content/mu-plugins/cloudflare cp /tmp/dashboard-cleanup /var/www/html/wp-content/mu-plugins/dashboard-cleanup cp /tmp/dashboard-cleanup /var/www/html/staging/wp-content/mu-plugins/dashboard-cleanup # cp /tmp/dashboard-cleanup /var/www/html/dev/wp-content/mu-plugins/dashboard-cleanup cp /tmp/delete-expired-transients /var/www/html/wp-content/mu-plugins/delete-expired-transients cp /tmp/delete-expired-transients /var/www/html/staging/wp-content/mu-plugins/delete-expired-transients # cp /tmp/delete-expired-transients /var/www/html/dev/wp-content/mu-plugins/delete-expired-transients cp /tmp/disable-attachment-pages /var/www/html/wp-content/mu-plugins/disable-attachment-pages cp /tmp/disable-attachment-pages /var/www/html/staging/wp-content/mu-plugins/disable-attachment-pages # cp /tmp/disable-attachment-pages /var/www/html/dev/wp-content/mu-plugins/disable-attachment-pages cp /tmp/disable-embeds /var/www/html/wp-content/mu-plugins/disable-embeds cp /tmp/disable-embeds /var/www/html/staging/wp-content/mu-plugins/disable-embeds # cp /tmp/disable-embeds /var/www/html/dev/wp-content/mu-plugins/disable-embeds cp /tmp/disable-emojis /var/www/html/wp-content/mu-plugins/disable-emojis cp /tmp/disable-emojis /var/www/html/staging/wp-content/mu-plugins/disable-emojis # cp /tmp/disable-emojis /var/www/html/dev/wp-content/mu-plugins/disable-emojis cp /tmp/disable-empty-trash /var/www/html/wp-content/mu-plugins/disable-empty-trash cp /tmp/disable-empty-trash /var/www/html/staging/wp-content/mu-plugins/disable-empty-trash # cp /tmp/disable-empty-trash /var/www/html/dev/wp-content/mu-plugins/disable-empty-trash cp /tmp/disable-gutenberg /var/www/html/wp-content/mu-plugins/disable-gutenberg cp /tmp/disable-gutenberg /var/www/html/staging/wp-content/mu-plugins/disable-gutenberg # cp /tmp/disable-gutenberg /var/www/html/dev/wp-content/mu-plugins/disable-gutenberg cp /tmp/disable-image-compression /var/www/html/wp-content/mu-plugins/disable-image-compression cp /tmp/disable-image-compression /var/www/html/staging/wp-content/mu-plugins/disable-image-compression # cp /tmp/disable-image-compression /var/www/html/dev/wp-content/mu-plugins/disable-image-compression cp /tmp/disable-post-via-email /var/www/html/wp-content/mu-plugins/disable-post-via-email cp /tmp/disable-post-via-email /var/www/html/staging/wp-content/mu-plugins/disable-post-via-email # cp /tmp/disable-post-via-email /var/www/html/dev/wp-content/mu-plugins/disable-post-via-email cp /tmp/disable-xml-rpc /var/www/html/wp-content/mu-plugins/disable-xml-rpc cp /tmp/disable-xml-rpc /var/www/html/staging/wp-content/mu-plugins/disable-xml-rpc # cp /tmp/disable-xml-rpc /var/www/html/dev/wp-content/mu-plugins/disable-xml-rpc cp /tmp/force-https /var/www/html/wp-content/mu-plugins/force-https cp /tmp/force-https /var/www/html/staging/wp-content/mu-plugins/force-https # cp /tmp/force-https /var/www/html/dev/wp-content/mu-plugins/force-https cp /tmp/force-strong-hashing /var/www/html/wp-content/mu-plugins/force-strong-hashing cp /tmp/force-strong-hashing /var/www/html/staging/wp-content/mu-plugins/force-strong-hashing # cp /tmp/force-strong-hashing /var/www/html/dev/wp-content/mu-plugins/force-strong-hashing cp /tmp/header-cleanup /var/www/html/wp-content/mu-plugins/header-cleanup cp /tmp/header-cleanup /var/www/html/staging/wp-content/mu-plugins/header-cleanup # cp /tmp/header-cleanup /var/www/html/dev/wp-content/mu-plugins/header-cleanup cp /tmp/limit-heartbeat /var/www/html/wp-content/mu-plugins/limit-heartbeat cp /tmp/limit-heartbeat /var/www/html/staging/wp-content/mu-plugins/limit-heartbeat # cp /tmp/limit-heartbeat /var/www/html/dev/wp-content/mu-plugins/limit-heartbeat # cp /tmp/maintenance-mode /var/www/html/wp-content/mu-plugins/maintenance-mode # cp /tmp/maintenance-mode /var/www/html/staging/wp-content/mu-plugins/maintenance-mode # cp /tmp/maintenance-mode /var/www/html/dev/wp-content/mu-plugins/maintenance-mode cp /tmp/minify-html /var/www/html/wp-content/mu-plugins/minify-html cp /tmp/minify-html /var/www/html/staging/wp-content/mu-plugins/minify-html # cp /tmp/minify-html /var/www/html/dev/wp-content/mu-plugins/minify-html cp /tmp/plugin-blacklist /var/www/html/wp-content/mu-plugins/plugin-blacklist cp /tmp/plugin-blacklist /var/www/html/staging/wp-content/mu-plugins/plugin-blacklist # cp /tmp/plugin-blacklist /var/www/html/dev/wp-content/mu-plugins/plugin-blacklist # cp /tmp/sftp-details /var/www/html/wp-content/mu-plugins/sftp-details # cp /tmp/sftp-details /var/www/html/staging/wp-content/mu-plugins/sftp-details # cp /tmp/sftp-details /var/www/html/dev/wp-content/mu-plugins/sftp-details cp /tmp/virtual-robotstxt /var/www/html/wp-content/mu-plugins/virtual-robotstxt cp /tmp/virtual-robotstxt /var/www/html/staging/wp-content/mu-plugins/virtual-robotstxt # cp /tmp/virtual-robotstxt /var/www/html/dev/wp-content/mu-plugins/virtual-robotstxt ## end if ## fi #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Delete Outdated MU Plugins (No Longer Used) ################## #################################################################################################### ## temp fix to delete files generated from empty variables in ss-config MU plugins ## rm /var/www/html/wp-content/mu-plugins/tmp* rm /var/www/html/dev/wp-content/mu-plugins/tmp* rm /var/www/html/staging/wp-content/mu-plugins/tmp* ## temp fix to delete outdated SlickStack MU plugins ## rm /var/www/html/wp-content/mu-plugins/index-autoload* rm /var/www/html/dev/wp-content/mu-plugins/index-autoload* rm /var/www/html/staging/wp-content/mu-plugins/index-autoload* rm /var/www/html/wp-content/mu-plugins/remove-query-strings* rm /var/www/html/dev/wp-content/mu-plugins/remove-query-strings* rm /var/www/html/staging/wp-content/mu-plugins/remove-query-strings* rm /var/www/html/wp-content/mu-plugins/error-log-monitor* rm /var/www/html/dev/wp-content/mu-plugins/error-log-monitor* rm /var/www/html/staging/wp-content/mu-plugins/error-log-monitor* rm /var/www/html/wp-content/mu-plugins/maintenance-mode* rm /var/www/html/dev/wp-content/mu-plugins/maintenance-mode* rm /var/www/html/staging/wp-content/mu-plugins/maintenance-mode* rm /var/www/html/wp-content/mu-plugins/server-status* rm /var/www/html/dev/wp-content/mu-plugins/server-status* rm /var/www/html/staging/wp-content/mu-plugins/server-status* #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Reset Permissions (WordPress MU Plugins) ##################### #################################################################################################### ## run ss-perms-wordpress-mu-plugins ## source /var/www/ss-perms-wordpress-mu-plugins #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Modify WP Admin Toolbar Shortcuts ############################ #################################################################################################### ## CURRENT NOT USED BUT COMING BACK SOON ## ## enable WP Admin toolbar switcher shortcut ## # if [[ "$STAGING_SITE" != "false" ]]; then # sed -i "s#//@STAGING_SITE_TRUE//##g" /var/www/html/wp-content/mu-plugins/xxx-common.php # fi #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Purge Cache (PHP OPcache) #################################### #################################################################################################### ## run ss-purge-opcache ## source /var/www/ss-purge-opcache #################################################################################################### #### SS-Purge: Delete All Transients From MySQL Database ########################################### #################################################################################################### ## manually deletes all transients (temporary query cache data) from WordPress database ## ## this is a more forceful approach than simply purging the Redis object cache ## ## run ss-purge-transients ## # source /var/www/ss-purge-transients #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Flush Cache (Redis) ########################################## #################################################################################################### ## run ss-purge-redis ## # source /var/www/ss-purge-redis #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Cleanup Temporary Files ###################################### #################################################################################################### ## delete tmp files ## rm /tmp/autoloader* rm /tmp/custom-functions* rm /tmp/functions* rm /tmp/xxx-* rm /tmp/object-cache* rm /tmp/clear-caches* rm /tmp/cloudflare* rm /tmp/dashboard-cleanup* rm /tmp/delete-expired-transients* rm /tmp/disable-attachment-pages* rm /tmp/disable-default-runner* rm /tmp/disable-emails* rm /tmp/disable-embeds* rm /tmp/disable-emojis* rm /tmp/disable-empty-trash* rm /tmp/disable-gutenberg* rm /tmp/disable-image-compression* rm /tmp/disable-post-via-email* rm /tmp/disable-xml-rpc* rm /tmp/error-log-monitor* rm /tmp/force-https* rm /tmp/force-strong-hashing* rm /tmp/header-cleanup* rm /tmp/index-autoload* rm /tmp/limit-heartbeat* rm /tmp/maintenance-mode* rm /tmp/minify-html* rm /tmp/plugin-blacklist* rm /tmp/remove-query-strings* rm /tmp/server-status* rm /tmp/sftp-details* rm /tmp/virtual-robotstxt* ## delete (custom) MU plugins temporary files ## # (coming soon) #################################################################################################### #### SS-Install-WordPress-MU-Plugins: Touch Timestamp File (End Script) ############################ #################################################################################################### ## this is a dummy timestamp file that will remember the last time this script was run ## ## it can be useful for developer reference and is sometimes used by SlickStack ## ## script timestamp ## touch /var/www/meta/.timestamp-ss-install-wordpress-mu-plugins #################################################################################################### #### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ############### #################################################################################################### ## Ref: https://unix.stackexchange.com/questions/368246/cant-use-alias-in-script-even-if-i-define-it-just-above ## SS_EOF