mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
500 B
31 lines
500 B
#!/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
|
|
|