mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
samba-config.service: fix destroying .cache structure
This commit is contained in:
parent
56eae6877e
commit
a2d4af6a40
@ -1,11 +1,9 @@
|
||||
[Unit]
|
||||
Description=Samba Configuration
|
||||
DefaultDependencies=false
|
||||
After=basic.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/lib/samba/samba-config
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
|
@ -3,6 +3,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
# Fix bug in older versions creating file /storage/.cache/services
|
||||
[ -f /storage/.cache/services ] && rm /storage/.cache/services && mkdir -p /storage/.cache/services
|
||||
|
||||
# Copy cache files, but don't overwrite
|
||||
false | cp -iRp /usr/cache/* /storage/.cache/ &>/dev/null
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user