mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 10:05:59 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -7,12 +7,12 @@ CONFIGSOURCE="/config/addons_config/fireflyiii_fints_importer"
|
|||||||
mkdir -p "$CONFIGSOURCE"
|
mkdir -p "$CONFIGSOURCE"
|
||||||
|
|
||||||
# If no file, provide example
|
# If no file, provide example
|
||||||
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /data/configurations ];
|
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /data/configurations ]; then
|
||||||
cp -r /data/configurations/* "$CONFIGSOURCE"/ || true
|
cp -r /data/configurations/* "$CONFIGSOURCE"/ || true
|
||||||
rm -r /data/configurations
|
rm -r /data/configurations
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ];
|
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ]; then
|
||||||
cp -r /app/configurations/* "$CONFIGSOURCE"/ || true
|
cp -r /app/configurations/* "$CONFIGSOURCE"/ || true
|
||||||
rm -r /app/configurations
|
rm -r /app/configurations
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user