summaryrefslogtreecommitdiff
path: root/community/ltris/ltris.install
blob: ff4947f6e337462a62e707b9454354ed3d123349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
  touch /var/games/ltris.hscr
  chown root:games /var/games/ltris.hscr
  chmod 664 /var/games/ltris.hscr
}

pre_upgrade() {
  if [ -e /var/ltris.hscr ]; then
    install -d /var/games
    cp /var/ltris.hscr /var/games
  fi
}

post_upgrade() {
  chown root:games /var/games/ltris.hscr
  chmod 664 /var/games/ltris.hscr
}