mirror of https://github.com/midoks/mdserver-web
parent
b2a2ce52a7
commit
7ca8d687d7
@ -1,85 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
|
||||||
export PATH |
|
||||||
# LANG=en_US.UTF-8 |
|
||||||
is64bit=`getconf LONG_BIT` |
|
||||||
|
|
||||||
if [ -f /etc/motd ];then |
|
||||||
echo "welcome to mdserver-web panel" > /etc/motd |
|
||||||
fi |
|
||||||
|
|
||||||
startTime=`date +%s` |
|
||||||
|
|
||||||
_os=`uname` |
|
||||||
echo "use system: ${_os}" |
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ] |
|
||||||
then echo "Please run as root!" |
|
||||||
exit |
|
||||||
fi |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ ${_os} == "Darwin" ]; then |
|
||||||
OSNAME='macos' |
|
||||||
elif grep -Eq "openSUSE" /etc/*-release; then |
|
||||||
OSNAME='opensuse' |
|
||||||
zypper refresh |
|
||||||
elif grep -Eq "FreeBSD" /etc/*-release; then |
|
||||||
OSNAME='freebsd' |
|
||||||
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then |
|
||||||
OSNAME='centos' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "Fedora" /etc/issue || grep -Eq "Fedora" /etc/*-release; then |
|
||||||
OSNAME='fedora' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then |
|
||||||
OSNAME='rocky' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/*-release; then |
|
||||||
OSNAME='alma' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then |
|
||||||
OSNAME='debian' |
|
||||||
apt update -y |
|
||||||
apt install -y devscripts |
|
||||||
apt install -y wget zip unzip |
|
||||||
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then |
|
||||||
OSNAME='ubuntu' |
|
||||||
apt install -y wget zip unzip |
|
||||||
else |
|
||||||
OSNAME='unknow' |
|
||||||
fi |
|
||||||
|
|
||||||
|
|
||||||
if [ $OSNAME != "macos" ];then |
|
||||||
mkdir -p /www/server |
|
||||||
mkdir -p /www/wwwroot |
|
||||||
mkdir -p /www/wwwlogs |
|
||||||
mkdir -p /www/backup/database |
|
||||||
mkdir -p /www/backup/site |
|
||||||
|
|
||||||
if [ ! -d /www/server/mdserver-web ];then |
|
||||||
wget -O /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip |
|
||||||
cd /tmp && unzip /tmp/master.zip |
|
||||||
mv -f /tmp/mdserver-web-master /www/server/mdserver-web |
|
||||||
rm -rf /tmp/master.zip |
|
||||||
rm -rf /tmp/mdserver-web-master |
|
||||||
fi |
|
||||||
fi |
|
||||||
|
|
||||||
echo "use system version: ${OSNAME}" |
|
||||||
cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh |
|
||||||
|
|
||||||
chmod +x /www/server/mdserver-web/mw-cli |
|
||||||
if [ ! -e /usr/bin/mw-cli ]; then |
|
||||||
ln -s /www/server/mdserver-web/mw-cli /usr/bin/mw-cli |
|
||||||
fi |
|
||||||
|
|
||||||
endTime=`date +%s` |
|
||||||
((outTime=(${endTime}-${startTime})/60)) |
|
||||||
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" |
|
||||||
|
|
||||||
systemctl daemon-reload |
|
||||||
|
|
||||||
|
|
@ -1,62 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
|
||||||
export PATH |
|
||||||
# LANG=en_US.UTF-8 |
|
||||||
is64bit=`getconf LONG_BIT` |
|
||||||
|
|
||||||
startTime=`date +%s` |
|
||||||
|
|
||||||
_os=`uname` |
|
||||||
echo "use system: ${_os}" |
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ] |
|
||||||
then echo "Please run as root!" |
|
||||||
exit |
|
||||||
fi |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ ${_os} == "Darwin" ]; then |
|
||||||
OSNAME='macos' |
|
||||||
elif grep -Eq "openSUSE" /etc/*-release; then |
|
||||||
OSNAME='opensuse' |
|
||||||
zypper refresh |
|
||||||
elif grep -Eq "FreeBSD" /etc/*-release; then |
|
||||||
OSNAME='freebsd' |
|
||||||
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then |
|
||||||
OSNAME='centos' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "Fedora" /etc/issue || grep -Eq "Fedora" /etc/*-release; then |
|
||||||
OSNAME='fedora' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then |
|
||||||
OSNAME='rocky' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/*-release; then |
|
||||||
OSNAME='alma' |
|
||||||
yum install -y wget zip unzip |
|
||||||
elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then |
|
||||||
OSNAME='debian' |
|
||||||
apt install -y wget zip unzip |
|
||||||
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then |
|
||||||
OSNAME='ubuntu' |
|
||||||
apt install -y wget zip unzip |
|
||||||
elif grep -Eqi "Raspbian" /etc/issue || grep -Eq "Raspbian" /etc/*-release; then |
|
||||||
OSNAME='raspbian' |
|
||||||
else |
|
||||||
OSNAME='unknow' |
|
||||||
fi |
|
||||||
|
|
||||||
wget -O /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip |
|
||||||
cd /tmp && unzip /tmp/master.zip |
|
||||||
cp -rf /tmp/mdserver-web-master/* /www/server/mdserver-web |
|
||||||
rm -rf /tmp/master.zip |
|
||||||
rm -rf /tmp/mdserver-web-master |
|
||||||
|
|
||||||
#pip uninstall public |
|
||||||
echo "use system version: ${OSNAME}" |
|
||||||
cd /www/server/mdserver-web && bash scripts/update/${OSNAME}.sh |
|
||||||
|
|
||||||
endTime=`date +%s` |
|
||||||
((outTime=($endTime-$startTime)/60)) |
|
||||||
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" |
|
@ -1,47 +1,13 @@ |
|||||||
[ |
[ |
||||||
{ |
{ |
||||||
"version": "0.9.9", |
"version": "0.9.1", |
||||||
"content": "* 主流系统支持。<br/> * 插件支持更多参数。<br/>* MySQL主从支持GTID和经典模式。<br/>* MariaDB主从支持GTID和经典模式。<br/>* Rsyncd更新。<br/>* 添加网站统计的插件。<br/>* 添加varnish插件。", |
"content": "* 主流系统支持。<br/> * 插件支持更多参数。<br/>* MySQL主从支持GTID和经典模式。<br/>* MariaDB主从支持GTID和经典模式。<br/>* Rsyncd更新。<br/>* 添加网站统计的插件。<br/>* 添加varnish插件。", |
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.9.0/mdserver-web.zip" |
"path": "https://github.com/midoks/mdserver-web/releases/download/0.9.9/mdserver-web.zip", |
||||||
}, |
"purge":"https://purge.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/update.sh", |
||||||
{ |
|
||||||
"version": "0.8.6", |
|
||||||
"content": "* mysql主从配置。<br/> * swap插件[虚拟内存]。<br/> * 部分优化。", |
|
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.8.6/mdserver-web.zip" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"version": "0.8.5", |
|
||||||
"content": "* 添加PHP80版本-Alpha <br/> * 自动识别IP地址 <br/> * 增加xhprof插件", |
|
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.8.5/mdserver-web.zip" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"version": "0.7.3", |
|
||||||
"content": "* 修复自动更新错误 <br/> * 优化文件批量处理 <br/> * 添加PHP守护插件", |
|
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.7.3/mdserver-web.zip" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"version": "0.5.6", |
|
||||||
"content": "* openresty,php,mysql,memcached,redis,pureftp,sphinx自启动添加 <br/> * 修复rsync自启动问题", |
|
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.5.6/mdserver-web.zip" |
|
||||||
}, |
}, |
||||||
{ |
{ |
||||||
"version": "0.4.2", |
"version": "0.9.0", |
||||||
"content": "* ssh工具优化<br/>* 面板收藏功能完成<br/>* 网站子目录绑定<br/>* 网站备份<br/>* 自动更新优化", |
"content": "* 主流系统支持。<br/> * 插件支持更多参数。<br/>* MySQL主从支持GTID和经典模式。<br/>* MariaDB主从支持GTID和经典模式。<br/>* Rsyncd更新。<br/>* 添加网站统计的插件。<br/>* 添加varnish插件。", |
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.4.2/mdserver-web.zip" |
"path": "https://github.com/midoks/mdserver-web/releases/download/0.9.0/mdserver-web.zip" |
||||||
}, |
|
||||||
{ |
|
||||||
"version": "0.0.6", |
|
||||||
"content": "1.修复重复js方法", |
|
||||||
"path": "https://github.com//midoks/mdserver-web/archive/0.0.6.zip" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"version": "0.0.5", |
|
||||||
"content": "1.基本功能OK<br/>,2.网站HTTPS功能验证!", |
|
||||||
"path": "https://github.com//midoks/mdserver-web/archive/0.0.5.zip" |
|
||||||
}, |
|
||||||
{ |
|
||||||
"version": "0.0.1.2", |
|
||||||
"content": "1.项目初建!<br/>2.面板更新功能!", |
|
||||||
"path": "https://github.com/midoks/mdserver-web/releases/download/0.0.1/mdserver-web.zip" |
|
||||||
} |
} |
||||||
] |
] |
Loading…
Reference in new issue