2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

feat: 安装后删除安装脚本和checksum

This commit is contained in:
耗子
2024-06-19 01:15:00 +08:00
parent ae9e39d0fe
commit 5c0bc8a1b7

View File

@@ -21,6 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
LOGO="+----------------------------------------------------\n| 耗子面板安装脚本\n+----------------------------------------------------\n| Copyright © 2022-"$(date +%Y)" 耗子科技 All rights reserved.\n+----------------------------------------------------"
HR="+----------------------------------------------------"
setup_Path="/www"
current_Path=$(pwd)
sshPort=$(cat /etc/ssh/sshd_config | grep 'Port ' | awk '{print $2}')
inChina=$(curl --retry 2 -m 10 -L https://www.cloudflare-cn.com/cdn-cgi/trace 2> /dev/null | grep -qx 'loc=CN' && echo "true" || echo "false")
@@ -338,6 +339,8 @@ EOF
echo -e $HR
panel init
panel getInfo
cd ${current_Path}
rm -f install_panel.sh
rm -f install_panel.sh.checksum.txt
}