diff options
Diffstat (limited to 'stackedit.install')
-rw-r--r-- | stackedit.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/stackedit.install b/stackedit.install new file mode 100644 index 000000000000..a04a7a0bdaf9 --- /dev/null +++ b/stackedit.install @@ -0,0 +1,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: + |