blob: e56a8ff7516a9f511d3fa0cb5274c8ae69723601 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
## arg 1: the new package version
post_install() {
useradd -d /opt/subnode -s /bin/false subnode &> /dev/null
chown -R subnode\: /opt/subnode
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
chown -R subnode\: /opt/subnode
}
## arg 1: the old package version
pre_remove() {
userdel subnode &> /dev/null
}
post_remove() {
echo 'Some files have not been removed because they are created by subnode itself, e.g. the show database.'
}
|