-
Notifications
You must be signed in to change notification settings - Fork 0
/
modoupgrade
34 lines (22 loc) · 962 Bytes
/
modoupgrade
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
nenní script jen návod :)
su - modoboa
source env/bin/activate
pip install modoboa==1.12.1
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py migrate
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py collectstatic
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py check --deploy
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py generate_postfix_maps --destdir /etc/postfix/ --force-overwrite
exit
service uwsgi restart
service nginx restart
--------------------------------------------
su - modoboa
source env/bin/activate
pip install modoboa-stats==1.4.1
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py migrate
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py collectstatic
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py load_initial_data
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py check --deploy
exit
service uwsgi restart
service nginx restart