blob: 5ed1bf26875d11c15f4412674853690fc89c70ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
post_install() {
# Create nightfall user/group if it doesn't already exist
[[ $(getent passwd nightfall) ]] \
|| useradd -d / -s /usr/bin/nologin nightfall
return 0
}
post_upgrade() {
# Run the install function on upgrade
post_install
}
pre_remove() {
# Remove the nightfall user/group if it exists
[[ $(getent passwd nightfall) ]] \
&& userdel nightfall
return 0
}
|