File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -626,12 +626,16 @@ upgrade_filemanager() {
626626
627627upgrade_roundcube (){
628628 if [ -n " $( echo " $WEBMAIL_SYSTEM " | grep -w ' roundcube' ) " ]; then
629- rc_version=$( cat /var/lib/roundcube/index.php | grep -o -E ' [0-9].[0-9].[0-9]+' | head -1) ;
630- if [ " $rc_version " != " $rc_v " ]; then
631- echo " [ * ] Upgrading Roundcube to version v$rc_v ..."
632- $HESTIA /bin/v-add-sys-roundcube
629+ if [ -d " /usr/share/roundcube" ]; then
630+ echo " [ ! ] Roundcube: Unable to update. Updates are managed by apt." ;
633631 else
634- echo " [ * ] Verify version Roundcube, No update found"
632+ rc_version=$( cat /var/lib/roundcube/index.php | grep -o -E ' [0-9].[0-9].[0-9]+' | head -1) ;
633+ if [ " $rc_version " != " $rc_v " ]; then
634+ echo " [ * ] Upgrading Roundcube to version v$rc_v ..."
635+ $HESTIA /bin/v-add-sys-roundcube
636+ else
637+ echo " [ * ] Verify version Roundcube, No update found"
638+ fi
635639 fi
636640 fi
637641}
You can’t perform that action at this time.
0 commit comments