mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 16:01:28 +00:00
~1.9.4r2 pkg
~修复小闪存模式启动失败的bug
This commit is contained in:
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
meta_v=v1.19.17
|
meta_v=v1.19.17
|
||||||
singboxr_v=1.13.0-alpha.27
|
singboxr_v=1.13.0-alpha.27
|
||||||
versionsh=1.9.4rc1.3
|
versionsh=1.9.4rc2
|
||||||
GeoIP_v=20251205
|
GeoIP_v=20251205
|
||||||
|
|||||||
@@ -51,7 +51,12 @@ core_check(){
|
|||||||
else
|
else
|
||||||
mv -f "$1" "$BINDIR/CrashCore.$zip_type"
|
mv -f "$1" "$BINDIR/CrashCore.$zip_type"
|
||||||
fi
|
fi
|
||||||
mv -f "$TMPDIR/core_new" "$TMPDIR/CrashCore"
|
if [ "$zip_type" = 'upx' ];then
|
||||||
|
rm -f "$1" "$TMPDIR"/core_new
|
||||||
|
ln -sf "$TMPDIR/CrashCore.upx" "$TMPDIR/CrashCore"
|
||||||
|
else
|
||||||
|
mv -f "$TMPDIR/core_new" "$TMPDIR/CrashCore"
|
||||||
|
fi
|
||||||
core_v="$v"
|
core_v="$v"
|
||||||
setconfig COMMAND "$COMMAND" "$CRASHDIR"/configs/command.env && . "$CRASHDIR"/configs/command.env
|
setconfig COMMAND "$COMMAND" "$CRASHDIR"/configs/command.env && . "$CRASHDIR"/configs/command.env
|
||||||
setconfig crashcore "$crashcore"
|
setconfig crashcore "$crashcore"
|
||||||
@@ -75,7 +80,7 @@ core_webget(){
|
|||||||
if [ "$?" = 0 ];then
|
if [ "$?" = 0 ];then
|
||||||
core_check "$TMPDIR/Coretmp.$zip_type"
|
core_check "$TMPDIR/Coretmp.$zip_type"
|
||||||
else
|
else
|
||||||
rm -rf "$TMPDIR/Coretmp.$zip_type"
|
rm -f "$TMPDIR/Coretmp.$zip_type"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,5 +55,4 @@ if [ -n "$test" -o -n "$(pidof CrashCore)" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
. "$CRASHDIR"/starts/start_error.sh
|
. "$CRASHDIR"/starts/start_error.sh
|
||||||
"$CRASHDIR"/start.sh stop
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ touch "$CRASHDIR"/.start_error #标记启动失败,防止自启
|
|||||||
error=$(cat "$TMPDIR"/core_test.log | grep -iEo 'error.*=.*|.*ERROR.*|.*FATAL.*')
|
error=$(cat "$TMPDIR"/core_test.log | grep -iEo 'error.*=.*|.*ERROR.*|.*FATAL.*')
|
||||||
logger "服务启动失败!请查看报错信息!详细信息请查看$TMPDIR/core_test.log" 33
|
logger "服务启动失败!请查看报错信息!详细信息请查看$TMPDIR/core_test.log" 33
|
||||||
logger "$error" 31
|
logger "$error" 31
|
||||||
|
"$CRASHDIR"/start.sh stop
|
||||||
|
|||||||
Reference in New Issue
Block a user