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:
-rw-r--r--docker-armhf/nextcloud/Dockerfile6
-rwxr-xr-xdocker-common/nextcloud/020nextcloud1
-rw-r--r--docker-common/nextcloud/ncp-wait-msg.html27
-rw-r--r--docker/nextcloud/Dockerfile6
-rw-r--r--ncp-web/ncp-wait-msg.php27
5 files changed, 67 insertions, 0 deletions
diff --git a/docker-armhf/nextcloud/Dockerfile b/docker-armhf/nextcloud/Dockerfile
index 317f43ec..ee45e2af 100644
--- a/docker-armhf/nextcloud/Dockerfile
+++ b/docker-armhf/nextcloud/Dockerfile
@@ -39,3 +39,9 @@ chmod 600 /root/.my.cnf
COPY docker-common/nextcloud/020nextcloud /etc/services-enabled.d/
COPY bin/ncp-provisioning.sh /usr/local/bin/
+
+# display message until first run initialization is complete
+COPY docker-common/nextcloud/ncp-wait-msg.html /data-ro/app
+RUN \
+mv /data-ro/app/index.php /; \
+mv /data-ro/app/ncp-wait-msg.html /data-ro/app/index.php;
diff --git a/docker-common/nextcloud/020nextcloud b/docker-common/nextcloud/020nextcloud
index 14342d7f..1df7939f 100755
--- a/docker-common/nextcloud/020nextcloud
+++ b/docker-common/nextcloud/020nextcloud
@@ -43,6 +43,7 @@ test -f /data/app/config/config.php || {
echo "Uninitialized instance, running nc-init..."
source /usr/local/etc/library.sh
activate_script /nc-init.sh
+ mv /index.php /var/www/nextcloud/ # restore this file after init
}
# Trusted Domain ( local IP )
diff --git a/docker-common/nextcloud/ncp-wait-msg.html b/docker-common/nextcloud/ncp-wait-msg.html
new file mode 100644
index 00000000..99270ba0
--- /dev/null
+++ b/docker-common/nextcloud/ncp-wait-msg.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html class="ng-csp" data-placeholder-focus="false" lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta charset="utf-8">
+ <title> NextCloudPlus Initialization </title>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="referrer" content="never">
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
+<?php session_start(); ?>
+</head>
+<body id="body-login">
+ <div class="wrapper">
+ <div class="v-align">
+ <header role="banner">
+ <div id="header">
+ <p style="font-size:130%">Initializing NextCloudPlus for the first time</p>
+ <p style="font-size:130%">Please wait...</p>
+ </div>
+ </header>
+ </div>
+ </div>
+ <script type="text/javascript">
+ setTimeout( function(){ window.location.reload( true ); }, 2500 );
+ </script>
+</body>
+</html>
diff --git a/docker/nextcloud/Dockerfile b/docker/nextcloud/Dockerfile
index a640e8a6..483aa6f1 100644
--- a/docker/nextcloud/Dockerfile
+++ b/docker/nextcloud/Dockerfile
@@ -39,3 +39,9 @@ chmod 600 /root/.my.cnf
COPY docker-common/nextcloud/020nextcloud /etc/services-enabled.d/
COPY bin/ncp-provisioning.sh /usr/local/bin/
+
+# display message until first run initialization is complete
+COPY docker-common/nextcloud/ncp-wait-msg.html /data-ro/app
+RUN \
+mv /data-ro/app/index.php /; \
+mv /data-ro/app/ncp-wait-msg.html /data-ro/app/index.php;
diff --git a/ncp-web/ncp-wait-msg.php b/ncp-web/ncp-wait-msg.php
new file mode 100644
index 00000000..8cdc978b
--- /dev/null
+++ b/ncp-web/ncp-wait-msg.php
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html class="ng-csp" data-placeholder-focus="false" lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta charset="utf-8">
+ <title> NextCloudPlus Initialization </title>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="referrer" content="never">
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
+<?php session_start(); ?>
+</head>
+<body id="body-login">
+ <div class="wrapper">
+ <div class="v-align">
+ <header role="banner">
+ <div id="header">
+ <p style="font-size:130%">Initializing NextCloudPlus for the first time</p>
+ <p style="font-size:130%">Please wait...</p>
+ </div>
+ </header>
+ </div>
+ </div>
+ <script type="text/javascript">
+ setTimeout( function(){ window.location.reload( true ); }, 5000 );
+ </script>
+</body>
+</html>