mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02:00
Update 90-create_links.sh
This commit is contained in:
@@ -24,7 +24,7 @@ if [ ! -L /config/Library ] || [ "$(readlink -f /config/Library || true)" != "/s
|
|||||||
# If a leftover dir/file exists at /config/Library, back it up instead of deleting
|
# If a leftover dir/file exists at /config/Library, back it up instead of deleting
|
||||||
if [ -e /config/Library ] && [ ! -L /config/Library ]; then
|
if [ -e /config/Library ] && [ ! -L /config/Library ]; then
|
||||||
TS="$(date +%s)"
|
TS="$(date +%s)"
|
||||||
bashio::log.warning "Found non-symlink at /config/Library; backing up to /config/Library.bak-${TS}"
|
# bashio::log.warning "Found non-symlink at /config/Library; backing up to /config/Library.bak-${TS}"
|
||||||
mv /config/Library "/config/Library.bak-${TS}"
|
mv /config/Library "/config/Library.bak-${TS}"
|
||||||
else
|
else
|
||||||
rm -f /config/Library || true
|
rm -f /config/Library || true
|
||||||
|
|||||||
Reference in New Issue
Block a user