mirror of
https://salsa.debian.org/games-team/bsdgames
synced 2024-12-04 14:46:22 -05:00
Remove phantasia files from pre- and postinst
This commit is contained in:
parent
70bae7bdcc
commit
a0ebb58f97
22
debian/postinst
vendored
22
debian/postinst
vendored
@ -28,14 +28,6 @@ SCOREFILES="
|
||||
/var/games/bsdgames/snake.log
|
||||
/var/games/bsdgames/snakerawscores
|
||||
/var/games/bsdgames/tetris-bsd.scores
|
||||
/var/games/bsdgames/phantasia/characs
|
||||
/var/games/bsdgames/phantasia/gold
|
||||
/var/games/bsdgames/phantasia/lastdead
|
||||
/var/games/bsdgames/phantasia/mess
|
||||
/var/games/bsdgames/phantasia/motd
|
||||
/var/games/bsdgames/phantasia/scoreboard
|
||||
/var/games/bsdgames/phantasia/void
|
||||
/var/games/bsdgames/phantasia/monsters
|
||||
/var/games/bsdgames/hack/perm
|
||||
/var/games/bsdgames/hack/record"
|
||||
|
||||
@ -53,24 +45,10 @@ if [ -d /var/games/bsdgames-nonfree ]; then
|
||||
rmdir -p /var/games/bsdgames-nonfree/hack/save 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# These files cannot just be zero-byte files:
|
||||
if [ ! -e /var/games/bsdgames/phantasia/void ]; then
|
||||
cp /usr/share/games/bsdgames/phantasia/void \
|
||||
/var/games/bsdgames/phantasia/void
|
||||
fi
|
||||
if [ ! -e /var/games/bsdgames/phantasia/monsters ] ; then
|
||||
cp /usr/share/games/bsdgames/phantasia/monsters \
|
||||
/var/games/bsdgames/phantasia/monsters
|
||||
fi
|
||||
|
||||
touch $SCOREFILES
|
||||
chown root:games $SCOREFILES
|
||||
chmod 664 $SCOREFILES
|
||||
|
||||
# These files may not be world-readable as they have passwords
|
||||
# in them.
|
||||
chmod 660 /var/games/bsdgames/phantasia/characs
|
||||
|
||||
ADVENTURE_PRIORITY=50
|
||||
|
||||
case "$action" in
|
||||
|
16
debian/preinst
vendored
16
debian/preinst
vendored
@ -23,15 +23,7 @@ SCOREFILES="
|
||||
/var/games/bsdgames/saillog
|
||||
/var/games/bsdgames/snake.log
|
||||
/var/games/bsdgames/snakerawscores
|
||||
/var/games/bsdgames/tetris-bsd.scores
|
||||
/var/games/bsdgames/phantasia/characs
|
||||
/var/games/bsdgames/phantasia/gold
|
||||
/var/games/bsdgames/phantasia/lastdead
|
||||
/var/games/bsdgames/phantasia/mess
|
||||
/var/games/bsdgames/phantasia/motd
|
||||
/var/games/bsdgames/phantasia/scoreboard
|
||||
/var/games/bsdgames/phantasia/void
|
||||
/var/games/bsdgames/phantasia/monsters"
|
||||
/var/games/bsdgames/tetris-bsd.scores"
|
||||
|
||||
# We used to keep score files in /var/lib/games, and if files are there,
|
||||
# move them into the new location.
|
||||
@ -40,10 +32,8 @@ if [ -d /var/lib/games ]; then
|
||||
# Have to set up directory hierarchy, since this is running as a
|
||||
# preinst.
|
||||
mkdir -p /var/games/bsdgames/phantasia
|
||||
chown root:games /var/games/bsdgames \
|
||||
/var/games/bsdgames/phantasia
|
||||
chmod g+rws /var/games/bsdgames \
|
||||
/var/games/bsdgames/phantasia
|
||||
chown root:games /var/games/bsdgames
|
||||
chmod g+rws /var/games/bsdgames
|
||||
|
||||
for file in $SCOREFILES; do
|
||||
oldfile=`echo $file | sed s:/var/games/:/var/lib/games/:`
|
||||
|
Loading…
Reference in New Issue
Block a user