forked from 5aaee9/typecho-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode.sh
68 lines (46 loc) · 1.5 KB
/
code.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/sh
set -e
# if command -v wget >/dev/null 2>&1; then
# else
# yum install wget -y
# fi
mkdir -p /var/www/html/typecho
cd ~
wget http://typecho.org/build.tar.gz -O typecho.tgz
tar zxvf typecho.tgz
mv build/* /var/www/html/typecho
rm -f typecho.tgz
# 进入插件目录
cd /var/www/html/typecho/usr/plugins
# # GistEcho plugins
# mkdir -p GistEcho
# wget https://gist.githubusercontent.com/legendlee/4187609/raw/fe859e9b2fb98a600cf91203b5f5fe9ac06c7ceb/GistEcho.php \
# -O GistEcho/Plugin.php
# # APlayer
# git clone https://github.com/MoePlayer/APlayer-Typecho.git Meting
# # Prism
# wget https://github.com/typecho-fans/plugins/releases/download/plugins-M_to_R/Prism.zip
# unzip Prism.zip
# rm -f Prism.zip
# # GitHub Cards
# git clone https://github.com/chekun/typecho-github-card.git GithubCard
# # Friends card
# git clone https://github.com/Indexyz/FriendsCard.git FriendsCard
# # Google Analytics
# mkdir Analytics
# wget https://gist.githubusercontent.com/Indexyz/c5b52f773eac14456d3385d3f58d8d4f/raw/70a75ad46f98991a853bc83bcd42a20ec9818ed7/Analytics_Plugin.php -O Analytics/Plugin.php
# # Sitemap
# git clone https://github.com/bayunjiang/typecho-sitemap.git
# mv typecho-sitemap/Sitemap .
# rm -rf typecho-sitemap
# # CDN switch
# # wget https://publish.indexyz.me/files/CDNSwitch.zip
# # unzip CDNSwitch.zip
# # rm -f CDNSwitch.zip
# 插件
wget https://www.yzmb.me/download/2253 -O TeStore.zip
unzip TeStore.zip
rm -f TeStore.zip
chown -R www-data:www-data /var/www/html
php-fpm&
nginx