summarylogtreecommitdiffstats
path: root/scorefile.install
blob: 2ded605deaea9eff19177cfef61d7d5164439ed0 (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
post_install() {
  set -e
  scorefile='/var/games/tint.scores'

  if [ ! -e "${scorefile}" ]; then
    touch "${scorefile}"
    chmod 0664 "${scorefile}"
    chown root:games "${scorefile}"
  fi

    cat << EOF

==> To enable savefile functionality; Add your user to the "games" group
==> You will need to logout or reboot for the changes to take effect.

==> sudo usermod -a -G games \$USER

EOF
}

post_remove() {
  set -e
  rm -f '/var/games/tint.scores'
}