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-09-30 01:19:40 +0300
committernachoparker <nacho@ownyourbits.com>2021-10-01 07:48:19 +0300
commit26edf1f7b0594c4923828e1979cb53f50e5c23a0 (patch)
tree7c41b914f5031a51676750ca3cf31ced91cd23e1 /bin/ncp/CONFIG/nc-nextcloud.sh
parentf1c90f543de8fb0813ba00164dbd8e36632b0fd3 (diff)
build: add LXC/LXD support
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/ncp/CONFIG/nc-nextcloud.sh')
-rw-r--r--bin/ncp/CONFIG/nc-nextcloud.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/ncp/CONFIG/nc-nextcloud.sh b/bin/ncp/CONFIG/nc-nextcloud.sh
index 4b9cf9de..17333bd6 100644
--- a/bin/ncp/CONFIG/nc-nextcloud.sh
+++ b/bin/ncp/CONFIG/nc-nextcloud.sh
@@ -19,11 +19,9 @@ install()
# During build, this step is run before ncp.sh. Avoid executing twice
[[ -f /usr/lib/systemd/system/nc-provisioning.service ]] && return 0
- source /usr/local/etc/library.sh # sets PHPVER RELEASE
-
# Optional packets for Nextcloud and Apps
apt-get update
- $APTINSTALL lbzip2 iputils-ping jq
+ $APTINSTALL lbzip2 iputils-ping jq wget
$APTINSTALL -t $RELEASE php-smbclient exfat-fuse exfat-utils # for external storage
$APTINSTALL -t $RELEASE php${PHPVER}-exif # for gallery
$APTINSTALL -t $RELEASE php${PHPVER}-gmp # for bookmarks
@@ -56,6 +54,16 @@ install()
echo "maxmemory $REDIS_MEM" >> $REDIS_CONF
echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf
+ if is_lxc; then
+ # Otherwise it fails to start in Buster LXC container
+ mkdir -p /etc/systemd/system/redis-server.service.d
+ cat > /etc/systemd/system/redis-server.service.d/lxc_fix.conf <<'EOF'
+[Service]
+ReadOnlyDirectories=
+EOF
+ systemctl daemon-reload
+ fi
+
chown redis: "$REDIS_CONF"
usermod -a -G redis www-data