Sleep longer on low power hardware

This commit is contained in:
Bob Mottram 2017-06-20 14:49:03 +01:00
parent 108f98b6da
commit 73c1cc1d67
1 changed files with 7 additions and 2 deletions

View File

@ -592,10 +592,15 @@ function install_home_server {
# wait for the database to be created
sleep 5
if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
# On low power systems more sleeping may be needed
sleep 10
if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
echo $'No matrix home server database was created'
exit 23782
fi
fi
chmod -R 700 $MATRIX_DATA_DIR/homeserver.db
MATRIX_ONION_HOSTNAME=$(add_onion_service matrix ${MATRIX_PORT} ${MATRIX_ONION_PORT})