Skip to content

Commit e14eb2e

Browse files
authored
Fix permisions
As in debian and centos fix issue whit exposed passwords
1 parent 39f0fa8 commit e14eb2e

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
@@ -1113,6 +1113,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11131113
fi
11141114
wget $vestacp/roundcube/main.inc.php -O /etc/roundcube/main.inc.php
11151115
wget $vestacp/roundcube/db.inc.php -O /etc/roundcube/db.inc.php
1116+
chmod 640 /etc/roundcube/debian-db-roundcube.php
1117+
chown root:www-data /etc/roundcube/debian-db-roundcube.php
11161118
wget $vestacp/roundcube/vesta.php -O \
11171119
/usr/share/roundcube/plugins/password/drivers/vesta.php
11181120
wget $vestacp/roundcube/config.inc.php -O \
@@ -1121,10 +1123,11 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11211123
mysql -e "CREATE DATABASE roundcube"
11221124
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
11231125
sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
1124-
11251126
if [ "$release" = '16.04' ]; then
11261127
mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
11271128
mv /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
1129+
chmod 640 /etc/roundcube/debian-db-roundcube.php
1130+
chown root:www-data /etc/roundcube/debian-db-roundcube.php
11281131
fi
11291132

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

0 commit comments

Comments
 (0)