Wait for database creation
This commit is contained in:
parent
72e388ec37
commit
74bc2e2948
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue