blob: d1e2082ee1f774cb6cafb92aa813f118c344fc9a (
plain)
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
|
pre_install() {
virtualenv2 --system-site-packages /usr/lib/seafile/seafileenv
virtualenv2 --relocatable /usr/lib/seafile/seafileenv
source /usr/lib/seafile/seafileenv/bin/activate
pip2 install gunicorn
pip2 install "Django>=1.5.8,<1.6"
pip2 install django-pipeline
pip2 install http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
pip2 install "https://github.com/djblets/djblets/archive/release-0.6.14.zip#egg=Djblets"
pip2 install "Pillow>=2.6.1,<3.0.0"
pip2 install "django-compressor==1.4"
pip2 install "django-statici18n==1.1.2"
pip2 install "git+git://github.com/haiwen/django-constance.git@bde7f7cdfd0ed1631a6817fd4cd76f37bf54fe35#egg=django-constance[database]"
pip2 install "openpyxl==2.3.0"
deactivate
}
post_install() {
systemctl daemon-reload
}
pre_upgrade() {
rm -rf /usr/lib/seafile/seafileenv
pre_install
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf /usr/lib/seafile/seafileenv
post_install
}
|