summaryrefslogtreecommitdiff
path: root/apache-spark/apache-spark.install
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-20 12:20:41 +0200
committerErich Eckner <git@eckner.net>2017-09-20 12:20:41 +0200
commit046b5d8334ec0b16253079407c6b1c652eb8b925 (patch)
treecd0941f169b77bf10bb78affa6ca3188c02d22e3 /apache-spark/apache-spark.install
parentc0a1033ef093daa270ec480effee6b709b3e8ab9 (diff)
downloadarchlinuxewe.git.save-046b5d8334ec0b16253079407c6b1c652eb8b925.tar.xz
apache-spark neu
Diffstat (limited to 'apache-spark/apache-spark.install')
-rw-r--r--apache-spark/apache-spark.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/apache-spark/apache-spark.install b/apache-spark/apache-spark.install
new file mode 100644
index 00000000..7aa03480
--- /dev/null
+++ b/apache-spark/apache-spark.install
@@ -0,0 +1,14 @@
+post_install() {
+ groupadd -r -f apache-spark
+ useradd -r -g apache-spark -s /usr/bin/nologin -d /var/lib/apache-spark apache-spark || true
+
+ [[ ! -d /var/lib/apache-spark/work ]] &&
+ install -d /var/lib/apache-spark/work
+
+ chown -R apache-spark:apache-spark /var/{lib,log}/apache-spark
+}
+
+post_remove() {
+ /usr/sbin/userdel apache-spark
+ /usr/sbin/groupdel apache-spark
+}