From 9ee09b0e7d1e127860e99d4695f3eab6407e7bd3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 24 Dec 2018 11:14:51 +0800 Subject: [PATCH] update --- plugins/gae/ico.png | Bin 0 -> 1377 bytes plugins/gae/index.html | 21 +++++++++++++++++++ plugins/gae/index.py | 20 ++++++++++++++++++ plugins/gae/info.json | 14 +++++++++++++ plugins/gae/install.sh | 46 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 plugins/gae/ico.png create mode 100755 plugins/gae/index.html create mode 100755 plugins/gae/index.py create mode 100755 plugins/gae/info.json create mode 100755 plugins/gae/install.sh diff --git a/plugins/gae/ico.png b/plugins/gae/ico.png new file mode 100644 index 0000000000000000000000000000000000000000..3632800b0f278bde1f7502df58ecc38cb791d94e GIT binary patch literal 1377 zcmV-n1)lneP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1olZpK~zXfrIlGI z<$V~(kDcsUYA##|NyZkEc$HF?r_m_WDJ!7Hg|V-!^6Y%_4PS9Ik~yH)z#G_BO@m#C&Uxwx1o;#8$yT-yJ~!XeqK{k zP2esFM5ab^JeC-;=SQin(lvAetL>gtLY5D*Zsw6r90+KZ)_ za1$dVBT=xkvm=#_jSW%IDZYAOlsd$Qanwl^WMpIrC*(^@kWl{h^)(xm#h$tk4h|9% z6QxgaadF6nC21!|hK0?mxk7}}+S(d6@Zjm`Np`B!@$vDJl9KZBa%PO<+}s>1J%>zy z$?EDVlC!fjR;&OUpb_@z1bK<5va*uYh>@S4FA|WPoQxMq8F1%IOH03e`NF66_I436 z)}jogwc=B$gIxOh`chL0|NuIva%ow4QFR(B`b{*o{$Lr{QRgu z$U*Y$+c(C^!@~pH#l=MwFp+zM0&V~J@ndLcC_amei}|WyHp0TfqN1XtQX1>zqM{~stKH*b|!GRbOKxUN6@Q5R( zK<>oY*jRRUHjE($@Sd5O$sCgehBRO5Xl-pp8K;1aKpz9hi%l>RVN|4tSWZt*^U_gA zU0t1&4?nz;R4_U^3U53)bdCUAk?rkmNtX&_Y9*dVuHqkPXlTHUFkHihg#{!#J3B)| zLv3wsEiEnm{r!wJ#>>mg4760nETLxTjWDmc5~)lDM>vg$h`<;?QBzYBFN*LfU>xYD zgM$N>nVE zz8^+G?rCXhc#$8EKOhw(B_$ml9qA2>0rpJBkfy;8!$SplWT0s*@mLuLUNA0)@GKOW z!drD*TwJiKUcP?)%Fj5DF0&+b%cslBOV&4FGKOJ?8G%1C<*42@AiNs|ns3zsWYT~- jl;Tc38Xf&t&}#n%UpdRJK!W0V00000NkvXXu0mjf_kfBl literal 0 HcmV?d00001 diff --git a/plugins/gae/index.html b/plugins/gae/index.html new file mode 100755 index 000000000..c044dfef9 --- /dev/null +++ b/plugins/gae/index.html @@ -0,0 +1,21 @@ +
+
+
+

插件说明

+
+ +
+
+
+
+
+ +
+ \ No newline at end of file diff --git a/plugins/gae/index.py b/plugins/gae/index.py new file mode 100755 index 000000000..9780ba8c3 --- /dev/null +++ b/plugins/gae/index.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +import time +import random +import os +import json +import re +import sys + +sys.path.append(os.getcwd() + "/class/core") +import public + + +def status(): + return 'start' + +if __name__ == "__main__": + func = sys.argv[1] + if func == 'status': + print status() diff --git a/plugins/gae/info.json b/plugins/gae/info.json new file mode 100755 index 000000000..2bfa6eff6 --- /dev/null +++ b/plugins/gae/info.json @@ -0,0 +1,14 @@ +{ + "title":"GAE", + "tip":"soft", + "name":"gae", + "ps":"GAE 英文全称为 Google App Engine。它是 Google 管理的数据中心中用于 WEB 应用程序的开发和托管的平台", + "versions": "0.1", + "shell":"install.sh", + "checks":"server/gae", + "path":"server/gae", + "author":"mdserver-web", + "home":"https://github.com/midoks/mdserver-web", + "date":"2018-11-30", + "pid":"5" +} \ No newline at end of file diff --git a/plugins/gae/install.sh b/plugins/gae/install.sh new file mode 100755 index 000000000..7295872f4 --- /dev/null +++ b/plugins/gae/install.sh @@ -0,0 +1,46 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin +export PATH + +curPath=`pwd` +rootPath=$(dirname "$curPath") +rootPath=$(dirname "$rootPath") +serverPath=$(dirname "$rootPath") + +install_tmp=${rootPath}/tmp/bt_install.pl + +Install_gae() +{ + mkdir -p ${serverPath}/gae + mkdir -p ${serverPath}/source/gae + + os=`uname` + if [ "Darwin" == "$os" ];then + file=google-cloud-sdk-218.0.0-darwin-x86_64.tar.gz + else + file=google-cloud-sdk-218.0.0-linux-x86_64.tar.gz + fi + + if [ ! -f $serverPath/source/gae/$file ];then + wget -O $serverPath/source/gae/$file https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/$file + fi + + cd $serverPath/source/gae && tar zxvf $file + + + echo "${1}" > ${serverPath}/gae/version.pl + echo '安装完成' > $install_tmp +} + +Uninstall_gae() +{ + rm -rf ${serverPath}/gae + echo '卸载完成' > $install_tmp +} + +action=$1 +if [ "${1}" == 'install' ];then + Install_gae $2 +else + Uninstall_gae $2 +fi