File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Hestia Control Panel upgrade script for target version 1.9.0
4+
5+ # ######################################################################################
6+ # ###### Place additional commands below. #######
7+ # ######################################################################################
8+ # ###### upgrade_config_set_value only accepts true or false. #######
9+ # ###### #######
10+ # ###### Pass through information to the end user in case of a issue or problem #######
11+ # ###### #######
12+ # ###### Use add_upgrade_message "My message here" to include a message #######
13+ # ###### in the upgrade notification email. Example: #######
14+ # ###### #######
15+ # ###### add_upgrade_message "My message here" #######
16+ # ###### #######
17+ # ###### You can use \n within the string to create new lines. #######
18+ # ######################################################################################
19+
20+ upgrade_config_set_value ' UPGRADE_UPDATE_WEB_TEMPLATES' ' false'
21+ upgrade_config_set_value ' UPGRADE_UPDATE_DNS_TEMPLATES' ' false'
22+ upgrade_config_set_value ' UPGRADE_UPDATE_MAIL_TEMPLATES' ' false'
23+ upgrade_config_set_value ' UPGRADE_REBUILD_USERS' ' no'
24+ upgrade_config_set_value ' UPGRADE_UPDATE_FILEMANAGER_CONFIG' ' false'
25+
26+ # Delete all ssh keys for the filemanager make sure hestiaweb can read them.
27+ for user in $( v-list-sys-users plain) ; do
28+ if [ -f /home/$user /.ssh/hst-filemanager-key ]; then
29+ # Remove old filemanager key
30+ rm -f /home/$user /.ssh/hst-filemanager-key
31+ fi
32+ done
33+
34+ # Update permissiosn /usr/local/hestia/data/sessions
35+ chown -R hestiaweb:hestiaweb /usr/local/hestia/data/sessions
You can’t perform that action at this time.
0 commit comments