Wait for database creation

This commit is contained in:
Bob Mottram 2017-02-07 16:29:51 +00:00
parent 72e388ec37
commit 74bc2e2948
1 changed files with 4 additions and 0 deletions

View File

@ -659,8 +659,12 @@ function install_home_server {
systemctl daemon-reload
systemctl start matrix
# wait for the database to be created
sleep 5
if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
echo $'No matrix home server database was created'
exit 23782
fi
chmod -R 700 $MATRIX_DATA_DIR/homeserver.db