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>2018-09-29 17:24:03 +0300
committernachoparker <nacho@ownyourbits.com>2018-09-29 18:00:03 +0300
commit6b14527ab4572008bbf3a243c5d1494ad18c7c54 (patch)
treeab4d5a5a432eef47820271fabdf8ffba256e5b62
parentaa2b3baa913373f3a324ac7dca1e747333a21997 (diff)
build: make sure we dont deactivate the wizard accidentally
-rwxr-xr-xbatch.sh29
-rwxr-xr-xbuild-SD-armbian.sh1
-rwxr-xr-xbuild-SD-rpi.sh3
-rw-r--r--docker-armhf/nextcloudpi/Dockerfile3
-rw-r--r--docker/nextcloudpi/Dockerfile3
-rw-r--r--install.sh1
-rw-r--r--ncp-web/index.php5
7 files changed, 27 insertions, 18 deletions
diff --git a/batch.sh b/batch.sh
index 42e2929b..8a50c041 100755
--- a/batch.sh
+++ b/batch.sh
@@ -31,21 +31,26 @@ IMG="$( ls -1t tmp/*.img | head -1 )"
./build-SD-armbian.sh bananapi Bananapi
# Docker x86
-make nextcloudpi-x86 && {
- docker push ownyourbits/nextcloudpi-x86
- docker push ownyourbits/nextcloud-x86
- docker push ownyourbits/lamp-x86
- docker push ownyourbits/debian-ncp-x86
-}
+make nextcloudpi-x86
+
+# TODO test first
+#&& {
+ #docker push ownyourbits/nextcloudpi-x86
+ #docker push ownyourbits/nextcloud-x86
+ #docker push ownyourbits/lamp-x86
+ #docker push ownyourbits/debian-ncp-x86
+#}
# Docker armhf
cp -n /usr/bin/qemu-arm-static docker-armhf && \
-make nextcloudpi-armhf && {
- docker push ownyourbits/nextcloudpi-armhf
- docker push ownyourbits/nextcloud-armhf
- docker push ownyourbits/lamp-armhf
- docker push ownyourbits/debian-ncp-armhf
-}
+make nextcloudpi-armhf
+
+# TODO test first && {
+ #docker push ownyourbits/nextcloudpi-armhf
+ #docker push ownyourbits/nextcloud-armhf
+ #docker push ownyourbits/lamp-armhf
+ #docker push ownyourbits/debian-ncp-armhf
+#}
rm -f docker-armhf/qemu-arm-static
# License
diff --git a/build-SD-armbian.sh b/build-SD-armbian.sh
index 1f0c3680..c668f15a 100755
--- a/build-SD-armbian.sh
+++ b/build-SD-armbian.sh
@@ -26,6 +26,7 @@ prepare_dirs # tmp cache output
# add NCP modifications
mkdir -p armbian/userpatches armbian/userpatches/overlay
+rm -f ncp-web/{wizard.cfg,ncp-web.cfg}
cp armbian.sh armbian/userpatches/customize-image.sh
rsync -Aax --delete --exclude-from .gitignore --exclude *.img --exclude *.bz2 . armbian/userpatches/overlay/
diff --git a/build-SD-rpi.sh b/build-SD-rpi.sh
index 30494d4f..2ef40a15 100755
--- a/build-SD-rpi.sh
+++ b/build-SD-rpi.sh
@@ -27,6 +27,9 @@ download_raspbian "$IMG"
resize_image "$IMG" "$SIZE"
update_boot_uuid "$IMG" # PARTUUID has changed after resize
+# make sure we don't accidentally disable first run wizard
+rm -f ncp-web/{wizard.cfg,ncp-web.cfg}
+
## BUILD NCP
echo -e "\e[1m\n[ Build NCP ]\e[0m"
diff --git a/docker-armhf/nextcloudpi/Dockerfile b/docker-armhf/nextcloudpi/Dockerfile
index 87bcdc92..2edfe5ce 100644
--- a/docker-armhf/nextcloudpi/Dockerfile
+++ b/docker-armhf/nextcloudpi/Dockerfile
@@ -15,6 +15,9 @@ COPY docker-common /tmp/ncp-build/docker-common/
RUN \
+# make sure we don't accidentally disable first run wizard
+rm -f ncp-web/{wizard.cfg,ncp-web.cfg}; \
+
# mark as image build
touch /.ncp-image; \
diff --git a/docker/nextcloudpi/Dockerfile b/docker/nextcloudpi/Dockerfile
index 8655cc22..ac4e539f 100644
--- a/docker/nextcloudpi/Dockerfile
+++ b/docker/nextcloudpi/Dockerfile
@@ -15,6 +15,9 @@ COPY docker-common /tmp/ncp-build/docker-common/
RUN \
+# make sure we don't accidentally disable first run wizard
+rm -f ncp-web/{wizard.cfg,ncp-web.cfg}; \
+
# mark as image build
touch /.ncp-image; \
diff --git a/install.sh b/install.sh
index a9242f40..8c3c78e7 100644
--- a/install.sh
+++ b/install.sh
@@ -51,7 +51,6 @@ install_script etc/ncp-config.d/nc-nextcloud.sh
activate_script etc/ncp-config.d/nc-nextcloud.sh
install_script ncp.sh
activate_script etc/ncp-config.d/nc-init.sh
-[[ -f /.ncp-image ]] && install_script post-inst.sh
popd
echo "Done.
diff --git a/ncp-web/index.php b/ncp-web/index.php
index a55bd69f..4de840c6 100644
--- a/ncp-web/index.php
+++ b/ncp-web/index.php
@@ -148,9 +148,6 @@ HTML;
<div class="icon-config"></div>
</div>
</div>
-<?php
- if ( file_exists( 'wizard' ) )
- echo <<<HTML
<a href="wizard" title="{$l->__("NextCloudPi Wizard")}">
<div class="wizard-btn">
<div id="expand">
@@ -158,8 +155,6 @@ HTML;
</div>
</div>
</a>
-HTML;
-?>
<a href="https://github.com/nextcloud/nextcloudpi/wiki" target="_blank" tabindex="1" title="<?php echo $l->__("NextCloudPi Wiki"); ?>">
<div id="nc-button">
<div id="expand">