Skip to content

Commit 836ce13

Browse files
authored
Merge pull request hestiacp#1084 from Skamasle/patch-15
Fix permisions
2 parents b64e799 + e14eb2e commit 836ce13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install/vst-install-ubuntu.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11151115
fi
11161116
wget $vestacp/roundcube/main.inc.php -O /etc/roundcube/main.inc.php
11171117
wget $vestacp/roundcube/db.inc.php -O /etc/roundcube/db.inc.php
1118+
chmod 640 /etc/roundcube/debian-db-roundcube.php
1119+
chown root:www-data /etc/roundcube/debian-db-roundcube.php
11181120
wget $vestacp/roundcube/vesta.php -O \
11191121
/usr/share/roundcube/plugins/password/drivers/vesta.php
11201122
wget $vestacp/roundcube/config.inc.php -O \
@@ -1123,10 +1125,11 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11231125
mysql -e "CREATE DATABASE roundcube"
11241126
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
11251127
sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
1126-
11271128
if [ "$release" = '16.04' ]; then
11281129
mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
11291130
mv /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
1131+
chmod 640 /etc/roundcube/debian-db-roundcube.php
1132+
chown root:www-data /etc/roundcube/debian-db-roundcube.php
11301133
fi
11311134

11321135
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql

0 commit comments

Comments
 (0)