mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -8,13 +8,13 @@ mkdir -p "$CONFIGSOURCE"
|
||||
|
||||
# If no file, provide example
|
||||
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /data/configurations ]; then
|
||||
cp -r /data/configurations/* "$CONFIGSOURCE"/ || true
|
||||
rm -r /data/configurations
|
||||
cp -r /data/configurations/* "$CONFIGSOURCE"/ || true
|
||||
rm -r /data/configurations
|
||||
fi
|
||||
|
||||
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ]; then
|
||||
cp -r /app/configurations/* "$CONFIGSOURCE"/ || true
|
||||
rm -r /app/configurations
|
||||
cp -r /app/configurations/* "$CONFIGSOURCE"/ || true
|
||||
rm -r /app/configurations
|
||||
fi
|
||||
|
||||
ln -sf "$CONFIGSOURCE" /data/configurations
|
||||
|
||||
Reference in New Issue
Block a user