mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
初始化卸载脚本
This commit is contained in:
@@ -114,6 +114,12 @@ curl -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/instal
|
|||||||
curl -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/update.sh | bash
|
curl -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/update.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- 卸载脚本
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/uninstall.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
### 备用地址
|
### 备用地址
|
||||||
|
|
||||||
- 初始安装
|
- 初始安装
|
||||||
@@ -129,6 +135,12 @@ curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts
|
|||||||
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/update.sh | bash
|
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/update.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- 卸载脚本
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/uninstall.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### 通用软件安装[命令行安装]
|
### 通用软件安装[命令行安装]
|
||||||
|
|
||||||
|
|||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/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 "" > /etc/motd
|
||||||
|
fi
|
||||||
|
|
||||||
|
startTime=`date +%s`
|
||||||
|
|
||||||
|
_os=`uname`
|
||||||
|
echo "use system: ${_os}"
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]
|
||||||
|
then echo "Please run as root!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
rm -rf /usr/bin/mw
|
||||||
|
rm -rf /www
|
||||||
|
|
||||||
|
|
||||||
|
endTime=`date +%s`
|
||||||
|
((outTime=(${endTime}-${startTime})/60))
|
||||||
|
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"
|
||||||
|
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
Reference in New Issue
Block a user