nc-nextcloud: fixes for docker build process

This commit is contained in:
nachoparker 2017-07-26 22:05:51 +02:00
parent c9a6c57e2f
commit 47a9cafc8a

View File

@ -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
@ -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"
}