summaryrefslogtreecommitdiff
path: root/community/dopewars/dopewars.install
blob: 2801fc33811553b6f21d0739141ac84dbf6116eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  if [ ! -e /var/games/dopewars.sco ]; then
    mkdir -p /var/games
    touch /var/games/dopewars.sco
    chown root:games /var/games/dopewars.sco
    chmod 664 /var/games/dopewars.sco
  fi
}

post_upgrade() {
  post_install
}

post_remove() {
  if [ -e /var/games/dopewars.sco ]; then
    rm /var/games/dopewars.sco
  fi
}

# vim:set ts=2 sw=2 et: