summarylogtreecommitdiffstats
path: root/pyload.install
diff options
context:
space:
mode:
authorM0Rf302016-03-26 11:12:29 +0100
committerM0Rf302016-03-26 11:12:29 +0100
commitd738f6f4d7497672784f71878c17d6db126c9c8a (patch)
treee596c1738b2fda994d5270819938220eaab6de16 /pyload.install
parent6dcba592d20458fc8d084f6bfc676ca476f0b0c1 (diff)
downloadaur-d738f6f4d7497672784f71878c17d6db126c9c8a.tar.gz
updated
Diffstat (limited to 'pyload.install')
-rw-r--r--pyload.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/pyload.install b/pyload.install
new file mode 100644
index 000000000000..047c49d045f9
--- /dev/null
+++ b/pyload.install
@@ -0,0 +1,15 @@
+post_install() {
+ getent group pyload &>/dev/null || groupadd -r pyload >/dev/null
+ getent passwd pyload &>/dev/null || useradd -r -g pyload -d /var/lib/pyload -s /bin/false -c pyload pyload >/dev/null
+ chown -R pyload:pyload /var/lib/pyload
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent passwd pyload &>/dev/null && userdel pyload >/dev/null
+ getent group pyload &>/dev/null && groupdel pyload >/dev/null
+ true
+}