mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
samba-config.service: fix destroying .cache structure
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user