Skip to content

Commit

Permalink
nc-init: check mariaDB up
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent 1344a7d commit 93a2b0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/nextcloudpi-config.d/nc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ configure()
echo "Setting up database..."

# wait for mariadb
pgrep -x mysqld &>/dev/null || { echo "mariaDB process not found"; return 1; }

while :; do
[[ -S /var/run/mysqld/mysqld.sock ]] && break
sleep 0.5
Expand Down

0 comments on commit 93a2b0a

Please sign in to comment.