[arch-commits] Commit in pinball/trunk (pinball.install)

Eric Bélanger eric at archlinux.org
Thu Apr 16 23:07:52 EDT 2009


    Date: Thursday, April 16, 2009 @ 23:07:52
  Author: eric
Revision: 35771

upgpkg: pinball 0.3.1-4
    fixed install scriptlet

Modified:
  pinball/trunk/pinball.install

-----------------+
 pinball.install |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: pinball.install
===================================================================
--- pinball.install	2009-04-17 02:54:38 UTC (rev 35770)
+++ pinball.install	2009-04-17 03:07:52 UTC (rev 35771)
@@ -5,12 +5,13 @@
 }
 
 pre_upgrade() {
-    cp var/games/pinball/professor/highscores var/games/pinball/professor/highscores.bak.pre_upgrade
-    cp var/games/pinball/tux/highscores var/games/pinball/tux/highscores.bak.pre_upgrade
+  chown root:games var/games/pinball/{professor,tux}
+  chmod 775 var/games/pinball/{professor,tux}
+  cp var/games/pinball/professor/highscores var/games/pinball/professor/highscores.bak.pre_upgrade
+  cp var/games/pinball/tux/highscores var/games/pinball/tux/highscores.bak.pre_upgrade
 }
 
 post_upgrade() {
-
   if [ -e var/games/pinball/professor/highscores.bak.pre_upgrade ]; then
     mv var/games/pinball/professor/highscores.bak.pre_upgrade var/games/pinball/professor/highscores
   fi



More information about the arch-commits mailing list