diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-06-03 23:37:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 23:37:53 +0300 |
commit | 156ee79572841fa41198a144d9a910fddb3ec577 (patch) | |
tree | 4a2d026642f6a50fcaca6470f90b859fb3312795 /nextcloud_install_production.sh | |
parent | b7a362aa67382cb3f83fc1bba5736d490a1bcd61 (diff) |
use backup solution
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index ca643ea3..8854e08a 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -99,7 +99,17 @@ fi if grep -q "LVM" /etc/fstab then # Resize LVM (live installer is &%ยค%/! + print_text_in_color "$ICyan" "Extending LVM..." lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv + + # Backup solution + while lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + do + if lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv | grep -q "Insufficient free space" + then + break + fi + done fi # Check if it's a clean server |