更新于 07-17 02:32

This commit is contained in:
root
2021-07-17 02:32:48 -04:00
parent 2e6fff1abf
commit c38590707d

6
jd.sh
View File

@@ -363,8 +363,8 @@ AutoConfig() {
RandomNum=$(gen_random_num 35) RandomNum=$(gen_random_num 35)
RandomCode=${CodeTable[RandomNum]}$RandomCode RandomCode=${CodeTable[RandomNum]}$RandomCode
done done
#[[ $(date "+%-H") -le 4 ]] && [[ $(date "+%-H") -ge 4 ]] && [[ $(date "+%-M") -le 25 ]] && [[ $(date "+%-M") -ge 21 ]] && rm -rf $file_config_sys [[ $(date "+%-H") -le 4 ]] && [[ $(date "+%-H") -ge 4 ]] && [[ $(date "+%-M") -le 25 ]] && [[ $(date "+%-M") -ge 21 ]] && pkill -9 node #&& rm -rf $file_config_sys
#[[ $(date "+%-H") -le 16 ]] && [[ $(date "+%-H") -ge 16 ]] && [[ $(date "+%-M") -le 25 ]] && [[ $(date "+%-M") -ge 21 ]] && rm -rf $file_config_sys [[ $(date "+%-H") -le 16 ]] && [[ $(date "+%-H") -ge 16 ]] && [[ $(date "+%-M") -le 25 ]] && [[ $(date "+%-M") -ge 21 ]] && pkill -9 node #&& rm -rf $file_config_sys
[[ -z $(grep -w "PanelEntryPort" $file_config_sys) ]] && rm -rf $file_config_sys && echo "正在配置面板文件" [[ -z $(grep -w "PanelEntryPort" $file_config_sys) ]] && rm -rf $file_config_sys && echo "正在配置面板文件"
if [[ ! -f $file_config_sys ]]; then if [[ ! -f $file_config_sys ]]; then
echo "#Auto Config" >$file_config_sys echo "#Auto Config" >$file_config_sys
@@ -1681,7 +1681,7 @@ run_normal() {
local p=$1 local p=$1
define_program "$p" define_program "$p"
find_file_and_path $p find_file_and_path $p
ps -ef | grep $file_name | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 #ps -ef | grep $file_name | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1
if [[ $file_name ]] && [[ $which_path ]]; then if [[ $file_name ]] && [[ $which_path ]]; then
import_config_and_check "$file_name" import_config_and_check "$file_name"
count_user_sum count_user_sum