Skip to content

Commit d3dec4d

Browse files
authored
Change order update steps (hestiacp#2317)
* Change order update steps - Hestia templates - Filemanger - Rainloop - Roundcube - phpMyAdmin - PHPMailer - Fix bug in backup config files where Rainloop copied Roundcube config - Update upgrade message RC * Improve message
1 parent 2c08075 commit d3dec4d

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

func/upgrade.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ upgrade_start_backup() {
481481
if [ "$DEBUG_MODE" = "true" ]; then
482482
echo " ---- Rainloop"
483483
fi
484-
cp -fr /etc/roundcube/* $HESTIA_BACKUP/conf/roundcube
484+
cp -fr /etc/rainloop/* $HESTIA_BACKUP/conf/rainloop
485485
fi
486486
if [ -d "/etc/phpmyadmin" ]; then
487487
if [ "$DEBUG_MODE" = "true" ]; then
@@ -632,7 +632,8 @@ upgrade_filemanager() {
632632
upgrade_roundcube(){
633633
if [ -n "$(echo "$WEBMAIL_SYSTEM" | grep -w 'roundcube')" ]; then
634634
if [ -d "/usr/share/roundcube" ]; then
635-
echo "[ * ] Roundcube: Unable to update. Updates are managed by apt.";
635+
echo "[ ! ] Roundcube: Updates are currently managed using the apt package manager";
636+
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/"
636637
else
637638
rc_version=$(cat /var/lib/roundcube/index.php | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
638639
if [ "$rc_version" != "$rc_v" ]; then

src/deb/hestia/postinst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ upgrade_start_routine | tee -a $LOG
6565
# Run upgrades of dependencies
6666
source_conf "$HESTIA_BACKUP/upgrade.conf"
6767

68-
# Upgrade File Manager and update configuration
69-
upgrade_filemanager | tee -a $LOG
70-
7168
# Update Web domain templates
7269
upgrade_rebuild_web_templates | tee -a $LOG
7370

@@ -77,18 +74,21 @@ upgrade_rebuild_mail_templates | tee -a $LOG
7774
# Update DNS zone templates
7875
upgrade_rebuild_dns_templates | tee -a $LOG
7976

80-
# Upgrade phpMyAdmin if applicable
81-
upgrade_phpmyadmin | tee -a $LOG
82-
83-
# Upgrade Roundcube if applicable
84-
upgrade_roundcube | tee -a $LOG
77+
# Upgrade File Manager and update configuration
78+
upgrade_filemanager | tee -a $LOG
8579

8680
# Upgrade Rainloop if applicable
8781
upgrade_rainloop | tee -a $LOG
8882

83+
# Upgrade Roundcube if applicable
84+
upgrade_roundcube | tee -a $LOG
85+
8986
# Upgrade PHPMailer if applicable
9087
upgrade_phpmailer | tee -a $LOG
9188

89+
# Upgrade phpMyAdmin if applicable
90+
upgrade_phpmyadmin | tee -a $LOG
91+
9292
# Set new version number in hestia.conf
9393
upgrade_set_version $new_version
9494
upgrade_set_branch $new_version

0 commit comments

Comments
 (0)