Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (36 sloc) 950 Bytes
#!/bin/bash
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, use sudo sh $0"
exit 1
fi
clear
echo ""
echo "Please backup your nginx data!!!!!"
get_char()
{
SAVEDSTTY=`stty -g`
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}
echo ""
echo "Press any key to start uninstall nginx and uwsgi , please wait ......"
char=`get_char`
killall nginx
rm -rf /usr/local/nginx
rm /root/vhost4py.sh
rm /root/lnmp
stop uwsgi_emperor
rm -rf /etc/init/uwsgi_emperor.conf
pip uninstall -y uwsgi
rm -rf /usr/local/bin/uwsgi
echo "Nginx + uwsgi Uninstall completed."
echo "========================================================================="
echo ""
echo "For more information please visit http://www.lnmp.org/ and http://www.fyears.org/"
echo ""
echo "========================================================================="