From 5e09ee39e6491620635ccf644d6ecaf2556b7fcd Mon Sep 17 00:00:00 2001 From: Simon Hoffmann Date: Sat, 14 Oct 2023 10:00:47 +0200 Subject: [PATCH] Update proxmox-zfs-postinstall.sh --- proxmox-zfs-postinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-zfs-postinstall.sh b/proxmox-zfs-postinstall.sh index 8aee4a7..1ccdfc9 100644 --- a/proxmox-zfs-postinstall.sh +++ b/proxmox-zfs-postinstall.sh @@ -238,7 +238,7 @@ for interval in "${!auto_snap_keep[@]}"; do done -if [ $swapfile_userinput_bool -eq "y" ]; then +if [ $swapfile_userinput_bool == "y" ]; then echo "Creating swapfile" zfs create -V ${swapfile_size}G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false rpool/$swapfile_name echo "Formatting swapfile"