blob: 752be34c89ffb2d86726787c08804a155222f63f (
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
38
|
pre_install() {
rm -rf /usr/lib/seafile
virtualenv2 --system-site-packages /usr/lib/seafile/seafileenv
virtualenv2 --relocatable /usr/lib/seafile/seafileenv
source /usr/lib/seafile/seafileenv/bin/activate
pip2 install "Django==1.8.10"
pip2 install "django-statici18n==1.1.2"
pip2 install "django-compressor==1.4"
pip2 install "git+git://github.com/haiwen/django-constance.git@bde7f7cdfd0ed1631a6817fd4cd76f37bf54fe35#egg=django-constance[database]"
pip2 install "openpyxl==2.3.0"
pip2 install "pytz==2015.7"
pip2 install "djangorestframework==3.3.1"
pip2 install "django-post-office==2.0.3"
pip2 install "Pillow>=2.6.1,<3.0.0"
pip2 install "python-memcached==1.57"
pip2 install gunicorn
deactivate
}
post_install() {
systemctl daemon-reload
}
pre_upgrade() {
rm -rf /usr/lib/seafile
pre_install
}
post_upgrade() {
post_install
}
post_remove() {
rm -rf /usr/lib/seafile
post_install
}
|