-
Notifications
You must be signed in to change notification settings - Fork 37
/
installOwnCloud.sh
executable file
·38 lines (27 loc) · 1.37 KB
/
installOwnCloud.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
#!/usr/bin/env bash
set -e -u -o pipefail
# remove info.php (prevents server info leak)
rm /srv/http/info.php
# to mount SMB shares:
pacman -S --noconfirm --noprogress --needed smbclient
# for video file previews
pacman -S --noconfirm --noprogress --needed ffmpeg
# for ssh mounts
pacman -S --noconfirm --noprogress --needed openssh
# for document previews
pacman -S --noconfirm --noprogress --needed libreoffice-fresh
# for image previews
pacman -S --noconfirm --noprogress --needed imagemagick ghostscript openexr openexr openexr libxml2 librsvg libpng libwebp
# not 100% sure what needs this:
pacman -S --noconfirm --noprogress --needed gamin
# owncloud itself
su docker -c 'pacaur -m --noprogressbar --noedit --noconfirm owncloud-archive'
pacman -U --noconfirm --needed /home/docker/.cache/pacaur/owncloud-archive/owncloud-archive-${OC_VERSION}-any.pkg.tar
# install some apps
pacman -S --noconfirm --noprogress --needed owncloud-app-bookmarks owncloud-app-calendar owncloud-app-contacts owncloud-app-documents
# setup Apache for owncloud
cp /etc/webapps/owncloud/apache.example.conf /etc/httpd/conf/extra/owncloud.conf
sed -i 's,Alias /owncloud "/usr/share/webapps/owncloud",Alias /${TARGET_SUBDIR} "/usr/share/webapps/owncloud",g' /etc/httpd/conf/extra/owncloud.conf
sed -i '$a Include conf/extra/owncloud.conf' /etc/httpd/conf/httpd.conf
# reduce docker layer size
cleanup-image