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