version 1.1 | | version 1.2 |
---|
| | |
db_go || true | | db_go || true |
| | |
db_get crossfire-server/ask_upgrade || true | | db_get crossfire-server/ask_upgrade || true |
if [ "$RET" = "yes" ] ; then | | if [ "$RET" = "true" ] ; then |
if [ ! -d /var/games/crossfire/ ] ; then | | if [ ! -d /var/games/crossfire/ ] ; then |
echo "moving /var/lib/games/crossfire/ to /var/games/crossfire" | | echo "moving /var/lib/games/crossfire/ to /var/games/crossfire" |
mv -f /var/lib/games/crossfire/ /var/games/ || true | | mv -f /var/lib/games/crossfire/ /var/games/ || true |
if [ -d /var/lib/games/crossfire/ ] ; then | | if [ -d /var/lib/games/crossfire/ ] ; then |
if [ "`ls /var/lib/games/crossfire/ | wc -l`" -gt 0 ] ; then | | if [ "`ls /var/lib/games/crossfire/ | wc -l`" -gt 0 ] ; then |
echo "there are still files in /var/lib/games/crossfire/ !" | | echo "Some files remain in /var/lib/games/crossfire/ !" |
echo "Please move them to /var/games/crossfire" | | echo "Please move them to /var/games/crossfire" |
fi | | fi |
fi | | fi |