Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-07-26 23:05:51 +0300
committernachoparker <nacho@ownyourbits.com>2017-08-11 00:17:56 +0300
commit47a9cafc8a23f4fea7382f222d0c2334aa62ab1e (patch)
tree452126a02096f0e7564e8627d947a051a88cf424
parentc9a6c57e2f261b0676d285f6ce4947d5ccd6bb2b (diff)
nc-nextcloud: fixes for docker build processv0.17.8
-rw-r--r--etc/nextcloudpi-config.d/nc-nextcloud.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh
index d1c8cd73..1f856f57 100644
--- a/etc/nextcloudpi-config.d/nc-nextcloud.sh
+++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh
@@ -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"
}