blob: dcf9be331789265cb81082a1628430828d3891bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
clear_cache(){
rm -rf /var/lib/domjudge/webapp/var/cache/*
}
post_install(){
/etc/domserver/genadminpassword > /etc/domserver/initial_admin_password.secret
/etc/domserver/genrestapicredentials > /etc/domserver/restapi.secret
/etc/domserver/gendbpasswords > /etc/domserver/dbpasswords.secret
/etc/domserver/gensymfonyparams \
/var/lib/domserver/webapp/app/config/parameters.yml.dist \
/etc/domserver/dbpasswords.secret \
> /var/lib/domserver/webapp/app/config/parameters.yml
}
pre_remove(){
clear_cache
}
pre_update(){
clear_cache
}
|