Skip to content

Commit eefa08b

Browse files
authored
Improve upgrade behaviour Roundcube and Filegator (hestiacp#3237)
1 parent cbdb132 commit eefa08b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

func/upgrade.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ upgrade_filemanager() {
600600
else
601601
fm_version="1.0.0"
602602
fi
603-
if [ "$fm_version" != "$fm_v" ]; then
603+
if version_ge "$fm_version" "$fm_v"; then
604604
echo "[ ! ] Upgrading File Manager to version $fm_v..."
605605
# Reinstall the File Manager
606606
$BIN/v-delete-sys-filemanager quiet yes
@@ -628,7 +628,7 @@ upgrade_roundcube() {
628628
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/"
629629
else
630630
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+
if version_ge "$rc_version" "$rc_v"; then
632632
echo "[ ! ] Upgrading Roundcube to version $rc_v..."
633633
$BIN/v-add-sys-roundcube
634634
else
@@ -641,7 +641,7 @@ upgrade_roundcube() {
641641
upgrade_rainloop() {
642642
if [ -n "$(echo "$WEBMAIL_SYSTEM" | grep -w 'rainloop')" ]; then
643643
rl_version=$(cat /var/lib/rainloop/data/VERSION)
644-
if [ "$rl_version" != "$rl_v" ]; then
644+
if version_ge "$rl_version" "$rl_v"; then
645645
echo "[ ! ] Upgrading Rainloop to version $rl_v..."
646646
$BIN/v-add-sys-rainloop
647647
else

0 commit comments

Comments
 (0)