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

@ -593,8 +593,13 @@ function install_home_server {
sleep 5
if [ ! -f $MATRIX_DATA_DIR/homeserver.db ]; then
echo $'No matrix home server database was created'
exit 23782
# 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