diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-06-04 02:31:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 02:31:46 +0300 |
commit | a580925dc151b28ebb946ca89d220735edbc5f39 (patch) | |
tree | 71f11f86b42c02d6709b2a8aee0a84a8609ec6c6 /nextcloud_install_production.sh | |
parent | 9b7f0ed79b056494ca261088cec4a350e40b2de6 (diff) |
use it as a backuo for everyone19.0.0
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index cee746fe..f26d6bd3 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -100,28 +100,28 @@ if grep -q "LVM" /etc/fstab then # Resize LVM (live installer is &%ยค%/! print_text_in_color "$ICyan" "Extending LVM, this may take a long time..." - lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv -elif home_sme_server -then - while lvdisplay | grep "Size" | awk '{print $3}' && lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 - do - if ! lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 - then - if ! lvextend -L +1G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + if ! lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv + then + print_text_in_color "$ICyan" "Extending LVM, this may take a long time..." + while lvdisplay | grep "Size" | awk '{print $3}' && lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + do + if ! lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 then - if ! lvextend -L +100M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + if ! lvextend -L +1G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 then - if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + if ! lvextend -L +100M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 then - resize2fs /dev/ubuntu-vg/ubuntu-lv - break + if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + then + resize2fs /dev/ubuntu-vg/ubuntu-lv + break + fi fi fi fi - fi - done + done + fi fi - # Check if it's a clean server stop_if_installed postgresql stop_if_installed apache2 |