blob: 2f001309b03914a78418477bd68f1ca6f3e5c78d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
post_install() {
cat << EOF
NOTE for argyllcms:
----
==> The documentaion is only available as html!
==> You will find it in /usr/share/argyllcms/doc
==> Color charts located in /usr/share/argyllcms/ref
==> Since release 1.5.0 ColorHug support is enabled by default. The environment variable "ENABLE_COLORHUG" is not longer needed!
EOF
/usr/sbin/groupadd plugdev &> /dev/null
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
/bin/echo "==> Added group plugdev. Please add your argyllcms user to this group! <=="
elif [ $RETVAL -eq 9 ] ; then
/bin/echo "==> Please add your argyllcms user to plugdev group! <=="
else
/bin/echo "==> Please create group plugdev and add your argyllcms user to this group! <=="
fi
}
post_upgrade() {
post_install $1
}
pre_remove() {
/bin/true
}
post_remove() {
/bin/echo "==> Please check if group plugdev and your assigned argyllcms user is still required! <=="
/bin/true
}
op=$1
shift
$op $*
|