You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: func/upgrade.sh
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -600,7 +600,7 @@ upgrade_filemanager() {
600
600
else
601
601
fm_version="1.0.0"
602
602
fi
603
-
if["$fm_version"!="$fm_v" ];then
603
+
ifversion_ge"$fm_version""$fm_v";then
604
604
echo"[ ! ] Upgrading File Manager to version $fm_v..."
605
605
# Reinstall the File Manager
606
606
$BIN/v-delete-sys-filemanager quiet yes
@@ -628,7 +628,7 @@ upgrade_roundcube() {
628
628
echo" To upgrade to the latest version of Roundcube directly from upstream, from please run the command migrate_roundcube.sh located in: /usr/local/hestia/install/upgrade/manual/"
629
629
else
630
630
rc_version=$(cat /var/lib/roundcube/index.php | grep -o -E '[0-9].[0-9].[0-9]+'| head -1)
631
-
if["$rc_version"!="$rc_v" ];then
631
+
ifversion_ge"$rc_version""$rc_v";then
632
632
echo"[ ! ] Upgrading Roundcube to version $rc_v..."
633
633
$BIN/v-add-sys-roundcube
634
634
else
@@ -641,7 +641,7 @@ upgrade_roundcube() {
641
641
upgrade_rainloop() {
642
642
if [ -n"$(echo "$WEBMAIL_SYSTEM"| grep -w 'rainloop')" ];then
643
643
rl_version=$(cat /var/lib/rainloop/data/VERSION)
644
-
if["$rl_version"!="$rl_v" ];then
644
+
ifversion_ge"$rl_version""$rl_v";then
645
645
echo"[ ! ] Upgrading Rainloop to version $rl_v..."
0 commit comments