summaryrefslogtreecommitdiff
path: root/community/ltris/ltris.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/ltris/ltris.install')
-rw-r--r--community/ltris/ltris.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/ltris/ltris.install b/community/ltris/ltris.install
new file mode 100644
index 000000000..ff4947f6e
--- /dev/null
+++ b/community/ltris/ltris.install
@@ -0,0 +1,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
+}