summarylogtreecommitdiffstats
path: root/stackedit.install
blob: a04a7a0bdaf9315691f10908dea78f8c6e62a7e4 (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
usr=stackedit
home=/var/lib/stackedit

_chown() {
  chown -R $usr:$usr $home
}

## arg 1:  the new package version
post_install() {
  getent passwd $usr &> /dev/null || useradd -r -d $home -s /bin/bash $usr
  _chown

}

post_upgrade() {
  _chown
}

## arg 1:  the old package version
post_remove() {
  rm -r $home
  return 0
}

# vim:set ts=2 sw=2 et: