sh Bash脚本安装最新的wordpress +插件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Bash脚本安装最新的wordpress +插件相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
#
# Instant Wordpress!
# ------------------
# My script for installing the latest version of WordPress plus a number of plugins I find useful.
#
# To use this script, go to the directory you want to install Wordpress to in the terminal and run this command:
#
# curl scripts.snaptortoise.com/wordpress | sh
#
# There you go.
#
# Latest version of WP
echo "Fetching WordPress...";
wget --quiet https://pt.wordpress.org/latest-pt_PT.zip;
unzip -q latest-pt_PT.zip;
# All-in-One-SEO-Pack
echo "Fetching All-in-One-SEO-Pack plugin...";
wget --quiet http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip;
unzip -q all-in-one-seo-pack.zip;
mv all-in-one-seo-pack wordpress/wp-content/plugins/
# Sitemap Generator
echo "Fetching Google Sitemap Generator plugin...";
wget --quiet http://downloads.wordpress.org/plugin/google-sitemap-generator.zip;
unzip -q google-sitemap-generator.zip;
mv google-sitemap-generator wordpress/wp-content/plugins/
# Secure WordPress
echo "Fetching Secure WordPress plugin...";
wget --quiet http://downloads.wordpress.org/plugin/secure-wordpress.zip;
unzip -q secure-wordpress.zip;
mv secure-wordpress wordpress/wp-content/plugins/
# Hierarchy Plugin
echo "Fetching Hierarchy plugin...";
wget --quiet http://downloads.wordpress.org/plugin/hierarchy.zip;
unzip -q hierarchy.zip;
mv hierarchy wordpress/wp-content/plugins/
# Image Widgets (Why isn't this standard?)
echo "Fetching Image Widget plugin...";
wget --quiet http://downloads.wordpress.org/plugin/image-widget.zip;
unzip -q image-widget.zip;
mv image-widget wordpress/wp-content/plugins/
# Super-cache
echo "Fetching Super Cache plugin...";
wget --quiet http://downloads.wordpress.org/plugin/wp-super-cache.zip;
unzip -q wp-super-cache.zip;
mv wp-super-cache wordpress/wp-content/plugins/
# W3 Total Cache (A little redundant with above, but I like options.)
echo "Fetching W3 Total Cache...";
wget --quiet http://downloads.wordpress.org/plugin/w3-total-cache.zip
unzip -q w3-total-cache.zip;
mv w3-total-cache wordpress/wp-content/plugins/
# Register Plus Redux (Good for membership-style sites)
echo "Fetching Register Plus Redux...";
wget --quiet http://downloads.wordpress.org/plugin/register-plus-redux.zip
unzip -q register-plus-redux.zip
mv register-plus-redux wordpress/wp-content/plugins/
# Regenerate Thumbnails (good for when you need to make custom sizes)
echo "Fetching Regenerate Thumbnails...";
wget --quiet http://downloads.wordpress.org/plugin/regenerate-thumbnails.zip
unzip -q regenerate-thumbnails.zip
mv regenerate-thumbnails wordpress/wp-content/plugins/
# Taxonomy Taxi
echo "Fetching Taxonomy Taxi...";
wget --quiet http://downloads.wordpress.org/plugin/taxonomy-taxi.zip
unzip -q taxonomy-taxi.zip
mv taxonomy-taxi wordpress/wp-content/plugins/
# Custom Post Type UI
echo "Fetching Custom Post Type UI...";
wget --quiet http://downloads.wordpress.org/plugin/custom-post-type-ui.zip
unzip -q custom-post-type-ui.zip
mv custom-post-type-ui wordpress/wp-content/plugins/
# WordPress Importer
echo "Fetching WordPress Importer...";
wget --quiet http://downloads.wordpress.org/plugin/wordpress-importer.zip
unzip -q wordpress-importer.zip
mv wordpress-importer wordpress/wp-content/plugins/
# WP-Quick-Pages
echo "Fetching WP-Quick-Pages...";
wget --quiet http://downloads.wordpress.org/plugin/wp-quick-pages.zip
unzip -q wp-quick-pages.zip
mv wp-quick-pages wordpress/wp-content/plugins/
# Simple Page Ordering
echo "Fetching Simple Page Ordering...";
wget --quiet http://downloads.wordpress.org/plugin/simple-page-ordering.zip
unzip -q simple-page-ordering.zip
mv simple-page-ordering wordpress/wp-content/plugins/
# FeedWordPress
echo "FeedWordPress...";
wget --quiet http://downloads.wordpress.org/plugin/feedwordpress.zip
unzip -q feedwordpress.zip
mv feedwordpress wordpress/wp-content/plugins/
# BackupWPup
echo "BackupWPup...";
wget --quiet http://downloads.wordpress.org/plugin/backwpup.zip
unzip -q backwpup.zip
mv backwpup wordpress/wp-content/plugins/
# Options Framework
echo "Fetching Options Framework plugin..."
wget --quiet "http://downloads.wordpress.org/plugin/options-framework.zip"
uznip -q options-framework.zip
mv options-framework wordpress/wp-content/plugins/
# Meta
echo "Fetching Meta Box plugin..."
wget --quiet "http://downloads.wordpress.org/plugin/meta-box.zip"
uznip -q meta-box.zip
mv meta-box wordpress/wp-content/plugins/
# Cleanup
echo "Cleaning up temporary files and directories...";
rm *.zip
# Move stuff into current directory
mv wordpress/* .;
rm -rf wordpress;
# Disable the built-in file editor because it's a hacking vector and I hate it
echo "Disabling file editor...";
echo "
/* Disable the file editor */
define(‘DISALLOW_FILE_EDIT’, true);" >> wp-config-sample.php
echo "Done!";
以上是关于sh Bash脚本安装最新的wordpress +插件的主要内容,如果未能解决你的问题,请参考以下文章
sh Wordpress:Bash安装脚本 - 下载最新的WP版本,使用用户提供的数据库名称,用户名和密码更新wp-config,创建
sh Wordpress:Bash安装脚本 - 下载最新的WP版本,使用用户提供的数据库名称,用户名和密码更新wp-config,创建