Skip to content

Commit b38e565

Browse files
authored
Fix issues with Filemanger (hestiacp#4761)
* Delete all exsiting hst-filemanager-keys Owner was admin instead of hestiaweb * Update permissiosn session folder hestia /usr/local/hestia/data/sessions
1 parent 0c97901 commit b38e565

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

install/upgrade/versions/1.9.2.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)