zfs list improvements for mount

This commit is contained in:
heavybullets8 2022-09-21 21:02:45 -06:00
parent b4e0551001
commit 8d50d27fe9

View File

@ -56,7 +56,7 @@ do
#Grab data then output and mount
data_name=$(echo "$pvc" | awk '{print $3}')
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
echo "Error: Failed to mount $app"
exit 1