mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-25 17:50:13 +01:00
Update proxmox-zfs-postinstall.sh, fix if queries
This commit is contained in:
parent
4105a6b2d3
commit
31be2d6e2a
@ -99,9 +99,9 @@ fi
|
||||
echo -e "######## Configure Swapfile ########\n"
|
||||
|
||||
read -p "With the default PVE-root on ZFS installation, no swap is created. Do you want to create a swapfile/zfs swap volume dataset? (y/n)" swapfile_userinput_bool
|
||||
if [ $swapfile_userinput_bool -eq "y" ]; then
|
||||
if [ $swapfile_userinput_bool == "y" ]; then
|
||||
read -p "Name for the swap dataset? Leave empty to use default 'swap'" swapfile_userinput_name
|
||||
if [ x$swapfile_userinput_name -eq "x" ]; then
|
||||
if [ x$swapfile_userinput_name == "x" ]; then
|
||||
swapfile_name="swap";
|
||||
else
|
||||
swapfile_name=$swapfile_userinput_name;
|
||||
|
Loading…
Reference in New Issue
Block a user