mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Merge pull request #1083 from Skamasle/patch-14
Fix permission ( security issue )
This commit is contained in:
commit
ce3c5e71d8
1 changed files with 6 additions and 1 deletions
|
@ -1088,6 +1088,9 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
|
||||||
fi
|
fi
|
||||||
wget $vestacp/roundcube/main.inc.php -O /etc/roundcube/main.inc.php
|
wget $vestacp/roundcube/main.inc.php -O /etc/roundcube/main.inc.php
|
||||||
wget $vestacp/roundcube/db.inc.php -O /etc/roundcube/db.inc.php
|
wget $vestacp/roundcube/db.inc.php -O /etc/roundcube/db.inc.php
|
||||||
|
chmod 640 /etc/roundcube/debian-db-roundcube.php
|
||||||
|
chmod 640 /etc/roundcube/config.inc.php
|
||||||
|
chown root:www-data /etc/roundcube/debian-db-roundcube.php
|
||||||
wget $vestacp/roundcube/vesta.php -O \
|
wget $vestacp/roundcube/vesta.php -O \
|
||||||
/usr/share/roundcube/plugins/password/drivers/vesta.php
|
/usr/share/roundcube/plugins/password/drivers/vesta.php
|
||||||
wget $vestacp/roundcube/config.inc.php -O \
|
wget $vestacp/roundcube/config.inc.php -O \
|
||||||
|
@ -1102,7 +1105,9 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
|
||||||
if [ "$release" -eq 8 ]; then
|
if [ "$release" -eq 8 ]; then
|
||||||
mv -f /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
|
mv -f /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
|
||||||
mv -f /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
|
mv -f /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
|
||||||
|
chmod 640 /etc/roundcube/debian-db-roundcube.php
|
||||||
|
chmod 640 /etc/roundcube/config.inc.php
|
||||||
|
chown root:www-data /etc/roundcube/debian-db-roundcube.php
|
||||||
# RoundCube tinyMCE fix
|
# RoundCube tinyMCE fix
|
||||||
tinymceFixArchiveURL=$vestacp/roundcube/roundcube-tinymce.tar.gz
|
tinymceFixArchiveURL=$vestacp/roundcube/roundcube-tinymce.tar.gz
|
||||||
tinymceParentFolder=/usr/share/roundcube/program/js
|
tinymceParentFolder=/usr/share/roundcube/program/js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue