[gweled] 37/72: Create /var/games if it doesn't exists (Closes: #595590)
    Stephen Kitt 
    skitt at moszumanska.debian.org
       
    Thu May 26 16:55:46 UTC 2016
    
    
  
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch debian-sid
in repository gweled.
commit 6a1897b28523d0c1bba14cedd73763c4c051fb80
Author: Ondřej Surý <ondrej at sury.org>
Date:   Mon Sep 6 10:26:56 2010 +0200
    Create /var/games if it doesn't exists (Closes: #595590)
---
 debian/postinst | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/debian/postinst b/debian/postinst
index 55f25af..f52071a 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -25,6 +25,12 @@ case "$1" in
 	    rm /var/games/gweled.hard.scores;
 	fi
 
+	if [ -d /var/games ]; then
+	    mkdir /var/games
+	    chown root:root /var/games
+	    chmod 755 /var/games
+	fi
+
 	for scorefile in Normal Timed; do
 	    [ ! -f /var/games/gweled.${scorefile}.scores ] && \
 		touch /var/games/gweled.${scorefile}.scores;
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/gweled.git
    
    
More information about the Pkg-games-commits
mailing list