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:
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index b5c2b9ee..4149617e 100644
--- a/install.sh
+++ b/install.sh
@@ -10,7 +10,7 @@
# more details at https://ownyourbits.com
BRANCH="${BRANCH:-master}"
-DBG=x
+#DBG=x
set -e$DBG
@@ -27,13 +27,17 @@ export PATH="/usr/local/sbin:/usr/sbin:/sbin:${PATH}"
# check installed software
type mysqld &>/dev/null && echo ">>> WARNING: existing mysqld configuration will be changed <<<"
-# get install code
-echo "Getting build code..."
+# get dependencies
apt-get update
apt-get install --no-install-recommends -y git ca-certificates sudo lsb-release
-git clone -b "${BRANCH}" https://github.com/nextcloud/nextcloudpi.git "${TMPDIR}"/nextcloudpi
-cd "${TMPDIR}"/nextcloudpi
+# get install code
+if [[ "${CODE_DIR}" == "" ]]; then
+ echo "Getting build code..."
+ CODE_DIR="${TMPDIR}"/nextcloudpi
+ git clone -b "${BRANCH}" https://github.com/nextcloud/nextcloudpi.git "${CODE_DIR}"
+fi
+cd "${CODE_DIR}"
# install NCP
echo -e "\nInstalling NextCloudPi..."
@@ -58,6 +62,7 @@ cp -r etc/ncp-templates /usr/local/etc/
install_app lamp.sh
install_app bin/ncp/CONFIG/nc-nextcloud.sh
run_app_unsafe bin/ncp/CONFIG/nc-nextcloud.sh
+rm /usr/local/etc/ncp-config.d/nc-nextcloud.cfg # armbian overlay is ro
systemctl restart mysqld # TODO this shouldn't be necessary, but somehow it's needed in Debian 9.6. Fixme
install_app ncp.sh
run_app_unsafe bin/ncp/CONFIG/nc-init.sh