Roundcube log permission fix

Roundcube is not able to write to /var/log/roundcube
This is a fix for it.

Reported as a bug long time ago - https://forum.vestacp.com/viewtopic.php?f=12&t=10114&p=39648#p38630
See last line at this post.
In v16 you accepted my pull request for password driver, but that was just a partial fix, because it needs to fix log permissions too.

Now here is a fix for roundcube log permissions.
This commit is contained in:
dpeca 2016-07-21 01:00:03 +02:00 committed by GitHub
commit e2da4fbb18

View file

@ -1125,6 +1125,14 @@ check_result $? "can't create admin user"
$VESTA/bin/v-change-user-shell admin bash
$VESTA/bin/v-change-user-language admin $lang
# RoundCube permissions fix
if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
if [ ! -d "/var/log/roundcube" ]; then
mkdir /var/log/roundcube
fi
chown admin:admin /var/log/roundcube
fi
# Configuring system ips
$VESTA/bin/v-update-sys-ip