#!/bin/bash

# 判断 宝塔面板中 系统启动项是否安装
if [ ! -d "/www/server/panel/plugin/boot" ]; then
        echo -e "SYSTEM_BOOT_NOT_INSTALL"
        exit;
fi

# 添加自定义系统启动项
# supervisor
echo -e '[{"server_name": "supervisor", "server_path": "/etc/supervisor/supervisord.conf"}]' > /www/server/panel/plugin/boot/config.json

