#!/bin/bash

# 判断宝塔是否安装
if [ ! -f "/etc/init.d/bt" ] || [ ! -d "/www/server/panel" ]; then
	echo -e "BT_NOT_INSTALL"
	exit;
fi

# 先关闭一些服务
/etc/init.d/redis stop
/etc/init.d/mysqld stop
/etc/init.d/mongodb stop
/etc/init.d/nginx -s stop

# 执行卸载宝塔脚本
curl https://file.tyxhetc.cn/bt-uninstall.sh|bash

# 删除宝塔数据目录
rm -rf /www

