summarylogtreecommitdiffstats
path: root/stackedit.install
diff options
context:
space:
mode:
authorM0Rf302015-06-17 16:32:15 +0200
committerM0Rf302015-06-17 16:32:15 +0200
commite19b2434b788f0038b5615b9c91057a7e6c02eec (patch)
treebe2a572e15633dbab6d2586a5bb6a0f36f62d3fb /stackedit.install
downloadaur-e19b2434b788f0038b5615b9c91057a7e6c02eec.tar.gz
Initial import
Diffstat (limited to 'stackedit.install')
-rw-r--r--stackedit.install26
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:
+