Add additional checks

This commit is contained in:
Cody Cook 2017-08-22 16:50:24 -07:00
commit f7a8e52123

View file

@ -12,6 +12,7 @@ do
echo -n "Investigating volume /$volume..."
for i in `find /"$volume" -maxdepth 2 -type d -name ".iscsi" | sed "s/\/.iscsi//g;s/\/$volume\///g;"`
do
found=1
path="/$volume/._share/${i}"
echo "Found /$volume/${i}... recreating configs...".
mkdir -p $path
@ -43,4 +44,8 @@ EOF
done
echo " Done with /$volume"
done
if [[ $found ]]
then
echo "Restarting readynasd to finish changes..."
systemctl restart readynasd
fi