From d43131f872dc942e01bbc3319719a070cab4f0b6 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sun, 5 May 2024 11:31:59 +0200 Subject: [PATCH] Fix pool path detection --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 560af26..75485da 100755 --- a/install.sh +++ b/install.sh @@ -160,7 +160,7 @@ sleep 2 if [ $LXC_MP -gt 0 ]; then pct set $LXC_NBR -mp0 $LXC_SHAREFS_STORAGE:$LXC_SHAREFS_SIZE,backup=1,mp=/$LXC_SHAREFS_MOUNTPOINT - pool=$(grep -A 4 $LXC_SHAREFS_MOUNTPOINT /etc/pve/storage.cfg | grep "pool " | cut -d ' ' -f2) + pool=$(grep -A 4 $LXC_SHAREFS_STORAGE /etc/pve/storage.cfg | grep "pool " | cut -d ' ' -f2) dataset=$(grep mp0 /etc/pve/lxc/$LXC_NBR.conf | cut -d ':' -f3 | cut -d',' -f1) zfs set recordsize=$LXC_MP_RECORDSIZE $pool/$dataset fi @@ -201,4 +201,4 @@ pct start $LXC_NBR if [[ $service == "zmb-ad" ]] || [[ $service == "zmb-ad-join" ]]; then sleep 5 pct exec $LXC_NBR /usr/local/bin/smb-backup 7 -fi \ No newline at end of file +fi