summarylogtreecommitdiffstats
path: root/memavaild.install
diff options
context:
space:
mode:
authorLibrewish2020-10-22 19:54:02 +0530
committerLibrewish2020-10-22 19:54:02 +0530
commitef6f5dad45a83348ce017bf0489659c40ed07ddd (patch)
treebb7e92dcf635a923c70ee4ad91cae1609067962e /memavaild.install
parent8d5fa86fc293725f17662470403c9eb43fbc134d (diff)
downloadaur-ef6f5dad45a83348ce017bf0489659c40ed07ddd.tar.gz
update
Diffstat (limited to 'memavaild.install')
-rw-r--r--memavaild.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/memavaild.install b/memavaild.install
new file mode 100644
index 000000000000..d9965852616d
--- /dev/null
+++ b/memavaild.install
@@ -0,0 +1,11 @@
+post_install() {
+ id "memavaild" &>/dev/null || useradd -r -M -s /bin/false memavaild
+}
+
+post_upgrade() {
+ id "memavaild" &>/dev/null || useradd -r -M -s /bin/false memavaild
+}
+
+post_remove() {
+ userdel memavaild
+}