summaryrefslogtreecommitdiff
path: root/social/trytond/trytond.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-10 18:27:19 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-10 18:27:19 -0300
commit144fd0584bef03781a60b0cb04645e922b4c66c3 (patch)
tree47a3a39ee139d967d513e36d26d49c49cf116b8a /social/trytond/trytond.install
parent304bc200d77e78c869d97d11b731991a9b7b8c09 (diff)
gnuhealth: new package and packages dependencies
Diffstat (limited to 'social/trytond/trytond.install')
-rw-r--r--social/trytond/trytond.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/social/trytond/trytond.install b/social/trytond/trytond.install
new file mode 100644
index 000000000..46d6daaba
--- /dev/null
+++ b/social/trytond/trytond.install
@@ -0,0 +1,20 @@
+post_install() {
+ echo
+ echo "Adding tryton group... "
+ groupadd tryton
+ echo
+ echo "Adding tryton user... "
+ useradd -c "Tryton Server Daemon" -g tryton -s /bin/false tryton
+
+ echo "Note:"
+ echo "==> Please don't forget to configure your PostgreSQL database for the program."
+}
+
+post_remove() {
+ echo "Removing tryton system user... "
+ userdel tryton && echo "trytond [done]"
+}
+
+op=$1
+shift
+[ "$(type -t "$op")" = "function" ] && $op "$@"