Commit d91368c4 authored by Corey Hinshaw's avatar Corey Hinshaw Committed by Joshua Tauberer

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
parent 61105b1e
...@@ -162,6 +162,8 @@ chmod 664 $STORAGE_ROOT/mail/users.sqlite ...@@ -162,6 +162,8 @@ chmod 664 $STORAGE_ROOT/mail/users.sqlite
# Run Roundcube database migration script (database is created if it does not exist) # 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 /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. # Enable PHP modules.
php5enmod mcrypt php5enmod mcrypt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment