-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·58 lines (48 loc) · 1.21 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
set -ex
# Install/configure dependencies
apk add --no-cache --virtual .build-deps \
syncthing \
supervisor \
bzip2 \
gnupg \
autoconf \
freetype-dev \
gmp-dev \
icu-dev \
libevent-dev \
libjpeg-turbo-dev \
libmcrypt-dev \
libpng-dev \
libwebp-dev \
libxml2-dev \
libzip-dev \
openldap-dev \
pcre-dev
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
docker-php-ext-configure ldap
docker-php-ext-install -j "$(nproc)" \
bcmath \
exif \
gd \
gmp \
intl \
ldap \
pcntl \
sysvsem \
zip
PHP_MEMORY_LIMIT="4096M"
PHP_UPLOAD_LIMIT="4096M"
# Create directories
[ ! -d $NEXTCLOUD_INSTALLATION_DIR ] && mkdir -p $NEXTCLOUD_INSTALLATION_DIR
# Nextcloud requirements for php
echo "memory_limit=${PHP_MEMORY_LIMIT}
upload_max_filesize=${PHP_UPLOAD_LIMIT}
post_max_filesize=${PHP_UPLOAD_LIMIT}" > "${PHP_INI_DIR}/conf.d/nextcloud.ini"
# Download nextcloud
curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2"
# Extract the source
tar --strip-components=1 -xjf nextcloud.tar.bz2 -C "${NEXTCLOUD_INSTALLATION_DIR}/"
# Clean up
rm nextcloud.tar.bz2
rm -rf "${NEXTCLOUD_INSTALLATION_DIR}/updater"