2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 05:47:21 +08:00

feat: frp管理器

This commit is contained in:
耗子
2024-06-03 02:07:21 +08:00
parent c3f9f56f11
commit 0c3c47361b
15 changed files with 1301 additions and 72 deletions

View File

@@ -22,8 +22,12 @@ HR="+----------------------------------------------------"
OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown")
if [ "${OS}" == "centos" ]; then
systemctl stop supervisord
systemctl disable supervisord
dnf remove -y supervisor
elif [ "${OS}" == "debian" ]; then
systemctl stop supervisor
systemctl disable supervisor
apt-get purge -y supervisor
else
echo -e $HR