summaryrefslogtreecommitdiff
path: root/community/adesklets/adesklets.install
blob: cae17e4998ba6e94b229d434e1738883a6bc1c86 (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
infodir=/usr/share/info
filelist=(adesklets.info adesklets_fr.info)

post_install() {
  for file in ${filelist[@]}; do
    install-info $infodir/$file $infodir/dir 2> /dev/null
  done

  getent group adesklets > /dev/null || usr/sbin/groupadd -g 107 adesklets
cat << EOF

==> To be able to save configs of adesklets
==> add your user to the adesklets group:
==> # gpasswd -a USERNAME adesklets

EOF
}

post_upgrade() {
  for file in ${filelist[@]}; do
    install-info $infodir/$file $infodir/dir 2> /dev/null
  done
}

post_remove() {
  for file in ${filelist[@]}; do
    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
  done

  usr/sbin/groupdel adesklets &>/dev/null
}