mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Fix permisions
As in debian and centos fix issue whit exposed passwords
This commit is contained in:
parent
39f0fa8761
commit
e14eb2e23e
1 changed files with 4 additions and 1 deletions
|
@ -1113,6 +1113,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
|
|||
fi
|
||||
wget $vestacp/roundcube/main.inc.php -O /etc/roundcube/main.inc.php
|
||||
wget $vestacp/roundcube/db.inc.php -O /etc/roundcube/db.inc.php
|
||||
chmod 640 /etc/roundcube/debian-db-roundcube.php
|
||||
chown root:www-data /etc/roundcube/debian-db-roundcube.php
|
||||
wget $vestacp/roundcube/vesta.php -O \
|
||||
/usr/share/roundcube/plugins/password/drivers/vesta.php
|
||||
wget $vestacp/roundcube/config.inc.php -O \
|
||||
|
@ -1121,10 +1123,11 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
|
|||
mysql -e "CREATE DATABASE roundcube"
|
||||
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
|
||||
sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
|
||||
|
||||
if [ "$release" = '16.04' ]; then
|
||||
mv /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
|
||||
mv /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
|
||||
chmod 640 /etc/roundcube/debian-db-roundcube.php
|
||||
chown root:www-data /etc/roundcube/debian-db-roundcube.php
|
||||
fi
|
||||
|
||||
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue