Add additional checks
This commit is contained in:
parent
fdc08739f1
commit
f7a8e52123
1 changed files with 6 additions and 1 deletions
|
@ -12,6 +12,7 @@ do
|
||||||
echo -n "Investigating volume /$volume..."
|
echo -n "Investigating volume /$volume..."
|
||||||
for i in `find /"$volume" -maxdepth 2 -type d -name ".iscsi" | sed "s/\/.iscsi//g;s/\/$volume\///g;"`
|
for i in `find /"$volume" -maxdepth 2 -type d -name ".iscsi" | sed "s/\/.iscsi//g;s/\/$volume\///g;"`
|
||||||
do
|
do
|
||||||
|
found=1
|
||||||
path="/$volume/._share/${i}"
|
path="/$volume/._share/${i}"
|
||||||
echo "Found /$volume/${i}... recreating configs...".
|
echo "Found /$volume/${i}... recreating configs...".
|
||||||
mkdir -p $path
|
mkdir -p $path
|
||||||
|
@ -43,4 +44,8 @@ EOF
|
||||||
done
|
done
|
||||||
echo " Done with /$volume"
|
echo " Done with /$volume"
|
||||||
done
|
done
|
||||||
|
if [[ $found ]]
|
||||||
|
then
|
||||||
|
echo "Restarting readynasd to finish changes..."
|
||||||
|
systemctl restart readynasd
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue