Skip to content

Commit

Permalink
nc-nextcloud: fixes for docker build process
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Aug 10, 2017
1 parent 5894514 commit 4e29863
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions etc/nextcloudpi-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ install() { :; }
configure()
{
## RE-CREATE DATABASE TABLE
echo "Starting mariaDB"

# launch mariadb if not already running (for docker build)
pgrep -x mysqld &>/dev/null || { mysqld & }

# 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 Expand Up @@ -172,8 +178,6 @@ EOF
crontab -u www-data /tmp/crontab_http
rm /tmp/crontab_http

systemctl start apache2

echo "Don't forget to run nc-init"
}

Expand Down

0 comments on commit 4e29863

Please sign in to comment.