diff options
Diffstat (limited to 'nightfall.install')
-rw-r--r-- | nightfall.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nightfall.install b/nightfall.install new file mode 100644 index 000000000000..5ed1bf26875d --- /dev/null +++ b/nightfall.install @@ -0,0 +1,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 +} |