修复 data 目录判断逻辑

This commit is contained in:
whyour
2024-06-25 22:25:36 +08:00
parent 0d492e94f4
commit 7efe81df9e
5 changed files with 26 additions and 11 deletions
+2 -2
View File
@@ -242,8 +242,8 @@ reload_qinglong() {
fi
if [[ "$reload_target" == 'data' ]]; then
rm -rf ${dir_root}/data/*
mv -f ${dir_tmp}/data/* ${dir_root}/data/
rm -rf ${dir_data}/*
mv -f ${dir_tmp}/data/* ${dir_data}/
fi
reload_pm2