Skip to content

Commit

Permalink
feat: 安装后删除安装脚本和checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jun 18, 2024
1 parent ae9e39d commit 5c0bc8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install_panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 5c0bc8a

Please sign in to comment.