Skip to content

Commit 9feba4d

Browse files
committed
v1.14.0版本新特性
- 🍉支持卸载脚本后,控制台自动删除服务器信息 - 🍇更新logo地址 - 🍍证书监控升级,H5证书监控通知详情 - 🥕修复nginx服务器变换IP导致新增记录问题 - 🍠支持七牛云-全站加速(DCDN)
1 parent d7b7977 commit 9feba4d

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

httpsok.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# NGINX_CONFIG_HOME=/etc/nginx
1212
##################################################
1313

14-
VER=1.13.0
14+
VER=1.14.0
1515

1616
PROJECT_NAME="httpsok"
1717
PROJECT_ENTRY="httpsok.sh"
@@ -204,14 +204,14 @@ _initparams() {
204204
fi
205205

206206
_init_httpsok_params
207-
207+
208208
_info "os-name: $OS"
209209
_info "version: $NGINX_VERSION"
210210
_info "nginx-config: $NGINX_CONFIG"
211211
_info "nginx-config-home: $NGINX_CONFIG_HOME"
212212
_info "nginx-bin: $nginx_bin"
213213
_info "httpsok-uuid: $HTTPSOK_UUID"
214-
214+
215215

216216
if [ "$NGINX_CONFIG_HOME" = "." ]; then
217217
echo ""
@@ -292,7 +292,7 @@ _post2() {
292292
_inithttp
293293
url="${BASE_API_URL}$1"
294294
fiename="$2"
295-
curl -s -X POST -H "$_H0" -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" -H "$_H5" -H "$_H6" -H "$_H7" -H "$_H8" -H "$_H9" --data-binary "@$fiename" "$url"
295+
curl -s -X POST -H "$_H0" -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" -H "$_H5" -H "$_H6" -H "$_H7" -H "$_H8" -H "$_H9" --data-binary "@$fiename" "$url"
296296
}
297297

298298
_get() {
@@ -328,6 +328,12 @@ _done() {
328328
_get "/done?t=$_t"
329329
}
330330

331+
_remote_uninstall(){
332+
_load_token
333+
_t=$(_time)
334+
_get "/uninstall?t=$_t"
335+
}
336+
331337
_create_file() {
332338
local _code="$1"
333339
local file_path="$2"
@@ -865,6 +871,7 @@ installAlais() {
865871

866872
_uninstall() {
867873
_info "Uninstalling httpsok."
874+
_remote_uninstall
868875
uninstallcronjob
869876
_uninstallalias
870877
if [ -d "$PROJECT_HOME" ]; then

0 commit comments

Comments
 (0)