mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 20:06:08 +08:00
修复创建日志目录逻辑
This commit is contained in:
parent
48edf2c212
commit
5edebdd5f3
|
@ -48,8 +48,11 @@ handle_log_path() {
|
||||||
log_dir="${log_dir_tmp%.*}${suffix}"
|
log_dir="${log_dir_tmp%.*}${suffix}"
|
||||||
log_path="$log_dir/$log_time.log"
|
log_path="$log_dir/$log_time.log"
|
||||||
cmd=">> $dir_log/$log_path 2>&1"
|
cmd=">> $dir_log/$log_path 2>&1"
|
||||||
[[ "$show_log" == "true" ]] && cmd=""
|
if [[ "$show_log" == "true" ]]; then
|
||||||
make_dir "$dir_log/$log_dir"
|
cmd=""
|
||||||
|
else
|
||||||
|
make_dir "$dir_log/$log_dir"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
format_params() {
|
format_params() {
|
||||||
|
|
|
@ -263,7 +263,6 @@ const Crontab = () => {
|
||||||
.replace(' 24:', ' 00:');
|
.replace(' 24:', ' 00:');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user