File: circuslinux.postinst

package info (click to toggle)
circuslinux 1.0.3-27
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,736 kB
  • ctags: 244
  • sloc: sh: 3,138; ansic: 2,594; makefile: 174; perl: 55
file content (29 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

#export DEBCONF_DEBUG=developer

# do not use debconf anymore only to display a message
# Source debconf library.
#    . /usr/share/debconf/confmodule

#db_get circuslinux/shared_score_file

#db_get circuslinux/merge_score_files
#if [ "$RET" = "true" ]; then
#    if [ ! -e /var/games/circuslinux/scorefile ]; then
#	bash /usr/share/games/circuslinux/merge_scorefiles.sh
#    else
#      db_get circuslinux/score_file_exists
#    fi
#fi

if [ ! -d /var/games/circuslinux ]; then
  mkdir -p /var/games/circuslinux
fi
chown root:root /var/games/circuslinux
chmod 755 /var/games/circuslinux
touch /var/games/circuslinux/scorefile
chown root:games /var/games/circuslinux/scorefile
chmod 775 /var/games/circuslinux/scorefile

#DEBHELPER#