blob: d720a42d8378f86949c869419012725336079891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
echo
echo "Adding tryton user and group... "
useradd -r -c "Tryton Server Daemon" -U -s /bin/false tryton
echo
echo "Note:"
echo "- Tryton modules can be installed using pip, e.g. 'pip install trytond-party'."
echo "- Configure Tryton using the config file /etc/tryton/trytond.conf."
echo "- See the Tryton documentation at http://doc.tryton.org for more information."
echo
}
post_remove() {
echo "Removing tryton user... "
userdel tryton
}
op=$1
shift
[ "$(type -t "$op")" = "function" ] && $op "$@"
|