diff options
Diffstat (limited to 'social/trytond/trytond.install')
-rwxr-xr-x | social/trytond/trytond.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/social/trytond/trytond.install b/social/trytond/trytond.install new file mode 100755 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 "$@" |