Merge pull request #2487 from fewtarius/dev
Fix game migration to new path during post-update.
This commit is contained in:
commit
7c237e5d89
1 changed files with 4 additions and 3 deletions
|
@ -99,10 +99,11 @@ fi
|
|||
### Migration part 2
|
||||
for GAMES in /storage/games-internal /storage/games-external
|
||||
do
|
||||
if [ ! -d "${GAMES}/roms" ]
|
||||
COUNT=$(find ${GAMES}/roms 2>/dev/null| wc -l)
|
||||
if [ "${COUNT}" -lt 10 ]
|
||||
then
|
||||
mkdir -p "${GAMES}/roms"
|
||||
mv "${GAMES}/"* "${GAMES}/roms/"
|
||||
mkdir -p "${GAMES}/roms" 2>/dev/null
|
||||
mv "${GAMES}/"* "${GAMES}/roms/" 2>/dev/null
|
||||
fi
|
||||
done
|
||||
systemctl restart jelos-automount
|
||||
|
|
Loading…
Reference in a new issue