summaryrefslogtreecommitdiff
path: root/community/leafnode/leafnode.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/leafnode/leafnode.install')
-rw-r--r--community/leafnode/leafnode.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/leafnode/leafnode.install b/community/leafnode/leafnode.install
new file mode 100644
index 000000000..8c5f10484
--- /dev/null
+++ b/community/leafnode/leafnode.install
@@ -0,0 +1,14 @@
+post_install() {
+ echo "-- Adding user 'news' and group 'news', chowning /var/spool/news"
+ grep -e "^news:" etc/group 2>&- >&- || groupadd -g 13 -r news 2>&- >&-
+ grep -e "^news:" etc/passwd 2>&- >&- || useradd -u 9 -r -m -g news news 2>&- >&-
+ chown -R root:news etc/leafnode
+ # create dir if necessary
+ if [ ! -d var/spool/news ]; then
+ install -d -m 770 -o news -g news var/spool/news
+ fi
+}
+
+post_remove() {
+ echo "-- Don't forget to remove /var/spool/news directory"
+}