mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-12-26 02:00:12 +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"
|
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
|
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
|
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";
|
swapfile_name="swap";
|
||||||
else
|
else
|
||||||
swapfile_name=$swapfile_userinput_name;
|
swapfile_name=$swapfile_userinput_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user