Use su-exec to run migrations under apache user
This commit is contained in:
@@ -17,7 +17,7 @@ db_wait() {
|
||||
db_migrate() {
|
||||
if [[ "${PHPBB_DB_AUTOMIGRATE}" = "true" && "${PHPBB_INSTALL}" != "true" ]]; then
|
||||
echo "$(date) - applying migrations"
|
||||
php bin/phpbbcli.php db:migrate
|
||||
su-exec apache php bin/phpbbcli.php db:migrate
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user