From b03a7f3a39c200dd7a3879e2cfc6fa3c9664ca72 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Tue, 12 Feb 2013 23:24:03 -0500 Subject: Adding python2-polib, python2-relatorio and trytond --- pcr/trytond/trytond.install | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pcr/trytond/trytond.install (limited to 'pcr/trytond/trytond.install') 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 "$@" -- cgit v1.2.3-2-g168b