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/nextcloudpi/Dockerfile3
-rw-r--r--docker/nextcloudpi/Dockerfile3
-rwxr-xr-xupdate.sh8
3 files changed, 10 insertions, 4 deletions
diff --git a/docker-armhf/nextcloudpi/Dockerfile b/docker-armhf/nextcloudpi/Dockerfile
index bc39eeac..9a86616c 100644
--- a/docker-armhf/nextcloudpi/Dockerfile
+++ b/docker-armhf/nextcloudpi/Dockerfile
@@ -13,6 +13,9 @@ RUN \
# mark as image build
touch /.ncp-image; \
+# mark as docker image
+touch /.docker-image; \
+
apt-get update; \
apt-get install --no-install-recommends -y wget ca-certificates; \
diff --git a/docker/nextcloudpi/Dockerfile b/docker/nextcloudpi/Dockerfile
index b0723df6..47574507 100644
--- a/docker/nextcloudpi/Dockerfile
+++ b/docker/nextcloudpi/Dockerfile
@@ -13,6 +13,9 @@ RUN \
# mark as image build
touch /.ncp-image; \
+# mark as docker image
+touch /.docker-image; \
+
apt-get update; \
apt-get install --no-install-recommends -y wget ca-certificates; \
diff --git a/update.sh b/update.sh
index 44c75486..93269655 100755
--- a/update.sh
+++ b/update.sh
@@ -44,7 +44,7 @@ cp etc/library.sh /usr/local/etc/
source /usr/local/etc/library.sh
# prevent installing some apt packages in the docker version
-[[ "$DOCKERBUILD" == 1 ]] && {
+[[ -f /.docker-image ]] && {
mkdir -p $CONFDIR
for opt in $EXCL_DOCKER; do
touch $CONFDIR/$opt
@@ -93,7 +93,7 @@ chown -R www-data:www-data /var/www/ncp-web
chmod 770 /var/www/ncp-web
# remove unwanted packages for the docker version
-[[ "$DOCKERBUILD" == 1 ]] && {
+[[ -f /.docker-image ]] && {
for opt in $EXCL_DOCKER; do
rm $CONFDIR/$opt
done
@@ -108,7 +108,7 @@ done
mkdir -p /var/log/redis
chown redis /var/log/redis
-[[ "$DOCKERBUILD" != 1 ]] && {
+[[ ! -f /.docker-image ]] && {
# improve dependency of database with automount
sed -i 's|^ExecStartPre=/bin/sleep .*|ExecStartPre=/bin/sleep 20|' /lib/systemd/system/mariadb.service
sed -i 's|^Restart=.*|Restart=on-failure|' /lib/systemd/system/mariadb.service
@@ -153,7 +153,7 @@ EOF
chmod +x /etc/cron.weekly/letsencrypt-ncp
}
-[[ "$DOCKERBUILD" != 1 ]] && {
+[[ ! -f /.docker-image ]] && {
# disable ramlogs if accidentally enabled
grep -q '^ACTIVE_=yes$' "$CONFDIR"/nc-ramlogs.sh || {
systemctl disable log2ram