From d91368c478ff6a2160ff9a04f61c851aea5998a4 Mon Sep 17 00:00:00 2001 From: Corey Hinshaw Date: Mon, 5 Dec 2016 17:31:20 -0500 Subject: [PATCH] Change ownership of roundcube DB after running migrations (#1024) * Fix #1023 by changing ownership of roundcube DB after running migrations * Set mode of roundcube sqlite database during setup --- setup/webmail.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/webmail.sh b/setup/webmail.sh index 306fbd6d..074a5aef 100755 --- a/setup/webmail.sh +++ b/setup/webmail.sh @@ -162,6 +162,8 @@ chmod 664 $STORAGE_ROOT/mail/users.sqlite # Run Roundcube database migration script (database is created if it does not exist) /usr/local/lib/roundcubemail/bin/updatedb.sh --dir /usr/local/lib/roundcubemail/SQL --package roundcube +chown www-data:www-data $STORAGE_ROOT/mail/roundcube/roundcube.sqlite +chmod 664 $STORAGE_ROOT/mail/roundcube/roundcube.sqlite # Enable PHP modules. php5enmod mcrypt