zfs list improvements for mount
This commit is contained in:
parent
b4e0551001
commit
8d50d27fe9
@ -56,7 +56,7 @@ do
|
|||||||
#Grab data then output and mount
|
#Grab data then output and mount
|
||||||
data_name=$(echo "$pvc" | awk '{print $3}')
|
data_name=$(echo "$pvc" | awk '{print $3}')
|
||||||
volume_name=$(echo "$pvc" | awk '{print $4}')
|
volume_name=$(echo "$pvc" | awk '{print $4}')
|
||||||
full_path=$(zfs list | grep "$volume_name" | grep "$pool" | awk '{print $1}')
|
full_path=$(zfs list -t filesystem -r "$pool"/ix-applications/releases/"$app"/volumes -o name -H | grep "$volume_name")
|
||||||
if ! zfs set mountpoint=/heavyscript/"$data_name" "$full_path" ; then
|
if ! zfs set mountpoint=/heavyscript/"$data_name" "$full_path" ; then
|
||||||
echo "Error: Failed to mount $app"
|
echo "Error: Failed to mount $app"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user