| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
#export DEBCONF_DEBUG=developer |
| 6 |
|
| 7 |
# do not use debconf anymore only to display a message |
| 8 |
# Source debconf library anyhow to prevent a lintian warning |
| 9 |
#. /usr/share/debconf/confmodule |
| 10 |
|
| 11 |
#db_get circuslinux/shared_score_file |
| 12 |
|
| 13 |
#db_get circuslinux/merge_score_files |
| 14 |
#if [ "$RET" = "true" ]; then |
| 15 |
# if [ ! -e /var/games/circuslinux/scorefile ]; then |
| 16 |
# bash /usr/share/games/circuslinux/merge_scorefiles.sh |
| 17 |
# else |
| 18 |
# db_get circuslinux/score_file_exists |
| 19 |
# fi |
| 20 |
#fi |
| 21 |
|
| 22 |
if [ ! -d /var/games/circuslinux ]; then |
| 23 |
mkdir -p /var/games/circuslinux |
| 24 |
fi |
| 25 |
|
| 26 |
# scorefile belongs to games |
| 27 |
chown root:games /var/games/circuslinux |
| 28 |
chmod 2775 /var/games/circuslinux |
| 29 |
touch /var/games/circuslinux/scorefile |
| 30 |
chown root:games /var/games/circuslinux/scorefile |
| 31 |
chmod 2664 /var/games/circuslinux/scorefile |
| 32 |
|
| 33 |
#DEBHELPER# |