Skip to content

Commit a580925

Browse files
authored
use it as a backuo for everyone
1 parent 9b7f0ed commit a580925

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

nextcloud_install_production.sh

+15-15
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,28 @@ if grep -q "LVM" /etc/fstab
100100
then
101101
# Resize LVM (live installer is &%¤%/!
102102
print_text_in_color "$ICyan" "Extending LVM, this may take a long time..."
103-
lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv
104-
elif home_sme_server
105-
then
106-
while lvdisplay | grep "Size" | awk '{print $3}' && lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
107-
do
108-
if ! lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
109-
then
110-
if ! lvextend -L +1G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
103+
if ! lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv
104+
then
105+
print_text_in_color "$ICyan" "Extending LVM, this may take a long time..."
106+
while lvdisplay | grep "Size" | awk '{print $3}' && lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
107+
do
108+
if ! lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
111109
then
112-
if ! lvextend -L +100M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
110+
if ! lvextend -L +1G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
113111
then
114-
if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
112+
if ! lvextend -L +100M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
115113
then
116-
resize2fs /dev/ubuntu-vg/ubuntu-lv
117-
break
114+
if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
115+
then
116+
resize2fs /dev/ubuntu-vg/ubuntu-lv
117+
break
118+
fi
118119
fi
119120
fi
120121
fi
121-
fi
122-
done
122+
done
123+
fi
123124
fi
124-
125125
# Check if it's a clean server
126126
stop_if_installed postgresql
127127
stop_if_installed apache2

0 commit comments

Comments
 (0)