添加extra文件校验

This commit is contained in:
whyour 2021-05-11 10:09:03 +08:00
parent 982643d6ef
commit 665ed19cff

View File

@ -162,6 +162,12 @@ fix_config() {
echo echo
fi fi
if [ ! -f $file_extra_shell ]; then
echo -e "检测到config配置目录下不存在extra.sh创建一个空文件用于初始化...\n"
touch $file_extra_shell
echo
fi
if [ ! -s $file_auth_user ]; then if [ ! -s $file_auth_user ]; then
echo -e "复制一份 $file_auth_sample$file_auth_user\n" echo -e "复制一份 $file_auth_sample$file_auth_user\n"
cp -fv $file_auth_sample $file_auth_user cp -fv $file_auth_sample $file_auth_user