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>2021-10-04 23:06:33 +0300
committernachoparker <nacho@ownyourbits.com>2021-10-04 23:06:39 +0300
commit20370640c7af3eb06c99cf56307a9553610ef1e7 (patch)
tree17366ab3f027c6f54b35a4f374d6796e686173a8
parent714c3e5fa749cfce9bead2e29700dd381dc07441 (diff)
ncp-web: disable activation page once activatedv1.39.21
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--build/docker/nextcloudpi/Dockerfile2
-rw-r--r--changelog.md4
-rw-r--r--ncp-web/activate/index.php12
3 files changed, 14 insertions, 4 deletions
diff --git a/build/docker/nextcloudpi/Dockerfile b/build/docker/nextcloudpi/Dockerfile
index be63ba09..0b7d7cc1 100644
--- a/build/docker/nextcloudpi/Dockerfile
+++ b/build/docker/nextcloudpi/Dockerfile
@@ -19,7 +19,7 @@ COPY ncp.sh update.sh post-inst.sh /tmp/ncp-build/
COPY ncp-web /tmp/ncp-build/ncp-web/
COPY ncp-app /tmp/ncp-build/ncp-app/
COPY ncp-previewgenerator /tmp/ncp-build/ncp-previewgenerator/
-COPY build/docker /tmp/ncp-build/docker/
+COPY build/docker /tmp/ncp-build/build/docker/
COPY etc/ncp-config.d/nc-init.cfg /usr/local/etc/ncp-config.d/nc-init-copy.cfg
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
diff --git a/changelog.md b/changelog.md
index e531bb9f..df5de105 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v1.39.20](https://github.com/nextcloud/nextcloudpi/commit/7188050) (2021-10-04) ncp-config: fix first time error with no known latest version
+[v1.39.21](https://github.com/nextcloud/nextcloudpi/commit/a4fdff6) (2021-10-04) ncp-web: disable activation page once activated
+
+[v1.39.20](https://github.com/nextcloud/nextcloudpi/commit/714c3e5) (2021-10-04) ncp-config: fix first time error with no known latest version
[v1.39.19](https://github.com/nextcloud/nextcloudpi/commit/05f0d35) (2021-09-30) ncp-web: fix upload from local file path
diff --git a/ncp-web/activate/index.php b/ncp-web/activate/index.php
index 8b2d901c..5c94a1a3 100644
--- a/ncp-web/activate/index.php
+++ b/ncp-web/activate/index.php
@@ -1,4 +1,12 @@
-<?php session_start(); ?>
+<?php
+// disallow once activated
+exec("a2query -s ncp-activation", $output, $ret);
+if ($ret != 0) {
+ http_response_code(404);
+ exit();
+}
+session_start();
+?>
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en">
<head>
@@ -10,7 +18,7 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
- <link rel="icon" type="image/png" href="img/favicon.png"/>
+ <link rel="icon" type="image/png" href="../img/favicon.png"/>
<link rel="stylesheet" href="CSS.css">
</head>
<body id="body-login">