blob: 55612768d3b80fa72403e0cccdeebfee2982fdff (
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
39
40
41
42
43
44
45
46
47
|
post_install()
{
cat << EOF
It is recommended to manually start the server once after installation (and
configuration):
cd /usr/share/webapps/codimd/
su -c 'npm start --production' codimd
EOF
_note_database_systemd
}
post_upgrade()
{
cat << EOF
It is recommended to manually start the server once after upgrading:
systemctl is-active codimd.service && systemctl stop codimd.service
cd /usr/share/webapps/codimd/
su -c 'npm start --production' codimd
EOF
if [ "$(vercmp "$2" '1.6.0-2')" -le 0 ]
then
_note_database_systemd
fi
}
_note_database_systemd()
{
cat << EOF
If any of PostgreSQL or MariaDB is used as database provider, it should be
added as systemd dependency:
systemctl edit codimd.service
> [Unit]
> After=<postgresql|mariadb>.service
EOF
}
|