Skip to content

Commit a562362

Browse files
ioannidesalexKristan Kenney
authored andcommitted
Fix permissions during upgrade
Affects: BIND, Roundcube
1 parent e9a1820 commit a562362

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/upgrade/0.10.0-190430.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
23
# define vars
34
HESTIA="/usr/local/hestia"
45
HESTIA_BACKUP="/root/hst_upgrade/$(date +%d%m%Y%H%M)"
@@ -143,6 +144,11 @@ chmod 751 $HESTIA/data/templates/web/unassigned/css
143144
chmod 751 $HESTIA/data/templates/web/unassigned/js
144145
chmod 751 $HESTIA/data/templates/web/unassigned/webfonts
145146

147+
# Correct other permissions
148+
chown bind:bind /var/cache/bind
149+
chmod 640 /etc/roundcube/debian-db*
150+
chown root:www-data /etc/roundcube/debian-db*
151+
146152
# Add unassigned hosts configuration to Nginx and Apache
147153
if [ "$WEB_SYSTEM" = "apache2" ]; then
148154
echo "(*) Adding unassigned hosts configuration to Apache..."

0 commit comments

Comments
 (0)