blob: 1e56d359455dc1861b3ca7d58244f9504e784be6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
post_install() {
mkdir -p /var/{lib,log}/apache-spark /opt/apache-spark/work
groupadd -r -f apache-spark
useradd -r -g apache-spark -s /usr/bin/nologin -d /var/lib/apache-spark apache-spark || true
chown -R apache-spark:apache-spark /var/{lib,log}/apache-spark /opt/apache-spark/work
}
pre_remove() {
pkill -u apache-spark
sleep 4
rm -rf /var/log/apache-spark /opt/apache-spark/work
userdel -r apache-spark
}
|