1+ #! /bin/bash
2+
3+ # Hestia Control Panel upgrade script for target version unknow
4+
5+ # ######################################################################################
6+ # ###### Place additional commands below. #######
7+ # ######################################################################################
8+ # ###### Pass through information to the end user in case of a issue or problem #######
9+ # ###### #######
10+ # ###### Use add_upgrade_message "My message here" to include a message #######
11+ # ###### in the upgrade notification email. Example: #######
12+ # ###### #######
13+ # ###### add_upgrade_message "My message here" #######
14+ # ###### #######
15+ # ###### You can use \n within the string to create new lines. #######
16+ # ######################################################################################
17+
18+ upgrade_config_set_value ' UPGRADE_UPDATE_WEB_TEMPLATES' ' no'
19+ upgrade_config_set_value ' UPGRADE_UPDATE_DNS_TEMPLATES' ' no'
20+ upgrade_config_set_value ' UPGRADE_UPDATE_MAIL_TEMPLATES' ' no'
21+ upgrade_config_set_value ' UPGRADE_REBUILD_USERS' ' no'
22+ upgrade_config_set_value ' UPGRADE_UPDATE_FILEMANAGER_CONFIG' ' false'
23+
24+ # make sure to sync install qouteshellarg
25+ $HESTIA /bin/v-add-sys-phpmailer
26+ if [ " $FILE_MANAGER " = " true" ]; then
27+ # Sync up filemanger
28+ $HESTIA /bin/v-delete-sys-filemanger
29+ $HESTIA /bin/v-add-sys-filemanger
30+ fi
31+
32+ # Sync up config files #2819
33+ if [ -f " /etc/roundcube/config.inc.php" ]; then
34+ sed -i " s/?>//" /etc/roundcube/config.inc.php
35+ sed -i " s/?>//" /etc/roundcube/db.inc.php
36+ sed -i " s/?>//" /etc/roundcube/minetypes.inc.php
37+ fi
0 commit comments