mdserver-web/scripts/uninstall.sh

32 lines
520 B
Bash
Raw Normal View History

2022-10-29 04:31:59 -04:00
#!/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
2022-11-01 09:28:39 -04:00
rm -rf /www/server/mdserver-web
2022-10-29 04:31:59 -04:00
endTime=`date +%s`
((outTime=(${endTime}-${startTime})/60))
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"
systemctl daemon-reload