summaryrefslogtreecommitdiff
path: root/pcr/trytond/trytond.install
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-02-14 12:13:51 -0200
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-02-14 12:13:51 -0200
commitf67b20d8da80cc120dcfea0d3405de74a8e5f84a (patch)
tree2d57e7cdc4772adc20017980fda13f1267cfc127 /pcr/trytond/trytond.install
parent327433a2a7ae50151dcf0e6f6840a3eb5c065808 (diff)
parent9e33e61c00e3da5565b47e16b6618ab98c9ea38f (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/trytond/trytond.install')
-rw-r--r--pcr/trytond/trytond.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/trytond/trytond.install b/pcr/trytond/trytond.install
new file mode 100644
index 000000000..46d6daaba
--- /dev/null
+++ b/pcr/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 "$@"