samba-config.service: fix destroying .cache structure

This commit is contained in:
mglae 2018-09-21 23:44:00 +02:00
parent 56eae6877e
commit a2d4af6a40
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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