#!/bin/bash
if [ -d "sharefile" ];then
echo "文件存在已重建"
rm -rf sharefile
else
echo "文件不存在"
fi
array[0]=FYCK;
array[1]=GUACK;
array[2]=JCW;
array[3]=SJCK;
array[4]=PJZ;
array[5]=SJZ;
for ((i=0;i<6;i++))
do
mkdir -p sharefile/${array[$i]}/{req,reqbak,rsp,rspbak}
chmod -R 775 sharefile/${array[$i]}/{req,reqbak,rsp,rspbak}
done
mkdir -p sharefile/${array[0]}/hz