updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / sun-wtk / sun-wtk.install
blobcf0737bae1b28bf108f94a7795c223793d0b3f7d
1 # arg 1:  the new package version
2 post_install() {
3   groupadd wtk &>/dev/null
4   chown root:wtk /opt/wtk/{apps,wtklib} -R
5   chmod g+w /opt/wtk/{apps,wtklib} -R
6   echo "PLEASE NOTE:"
7   echo "-----------------------------------------------------------"
8   echo "Users wishing to use the WTK must be part of the wtk group."
9   echo "-----------------------------------------------------------"
12 # arg 1:  the new package version
13 # arg 2:  the old package version
14 post_upgrade() {
15   post_install $1 $2
18 # arg 1:  the old package version
19 post_remove() {
20   groupdel wtk
23 op=$1
24 shift
25 $op $*