Skip to content

Commit

Permalink
Merge pull request #3 from lanets/fix/centos
Browse files Browse the repository at this point in the history
Changed regex
  • Loading branch information
AleRousse authored Nov 27, 2019
2 parents 1b70d66 + 568aada commit 0a85fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/partresize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/fsresize.service
systemctl enable fsresize.service
}

l=$(sudo lvdisplay | grep 'LV Path' | grep -o '\/[a-z0-9/-]*/root')
l=$(sudo lvdisplay | grep 'LV Path' | grep -o '\/[a-z0-9/_-]*root')
p=$(sudo pvdisplay | grep 'PV Name' | grep -o '\/[a-z0-9/-]*')

command -v fdisk >/dev/null 2>&1 && command -v parted >/dev/null 2>&1 && command -v pvresize >/dev/null 2>&1 || {
Expand Down

0 comments on commit 0a85fef

Please sign in to comment.