Merge pull request #3997 from MilhouseVH/le92_kodi_config_fix

kodi-config: create userdata when it doesn't exist [backport]
This commit is contained in:
Matthias Reichl 2019-11-18 00:39:31 +01:00 committed by GitHub
commit bc18fe7b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,9 @@ KODI_ROOT=$HOME/.kodi
BOOT_STATE="$(cat $HOME/.config/boot.status 2>/dev/null)" BOOT_STATE="$(cat $HOME/.config/boot.status 2>/dev/null)"
# May not exist if testing a clean /storage/.kodi without rebooting
mkdir -p $KODI_ROOT/userdata
# hack: make addon-bins executable # hack: make addon-bins executable
# done in kodi on addon install. but just in case.. # done in kodi on addon install. but just in case..
chmod +x $KODI_ROOT/addons/*/bin/* 2>/dev/null chmod +x $KODI_ROOT/addons/*/bin/* 2>/dev/null

View File

@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
d /storage/.kodi/userdata 0755 root root - -
d /storage/music 0755 root root - - d /storage/music 0755 root root - -
d /storage/pictures 0755 root root - - d /storage/pictures 0755 root root - -
d /storage/tvshows 0755 root root - - d /storage/tvshows 0755 root root - -