distribution/packages/sysutils/systemd/scripts/userconfig-setup

13 lines
428 B
Text
Raw Normal View History

2022-02-05 14:23:32 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
# Remove those sample files that we manage
for sample in $(find /storage/.config -name '*.sample' 2>/dev/null); do
2022-02-28 21:31:20 +00:00
[ -f /usr/config/${sample:17} ] && rm -f ${sample}
2022-02-05 14:23:32 +00:00
done
2022-02-28 21:31:20 +00:00
# Copy config files, but don't overwrite - this should replace our sample files
false | cp -iRp /usr/config/* /storage/.config/ &>/dev/null