Update 20-folders.sh

This commit is contained in:
Alexandre
2022-12-19 23:41:39 +01:00
committed by GitHub
parent c8b4f12947
commit 680c7405ed

View File

@@ -7,12 +7,12 @@ CONFIGSOURCE="/config/addons_config/fireflyiii_fints_importer"
mkdir -p "$CONFIGSOURCE"
# 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
rm -r /data/configurations
fi
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ];
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ]; then
cp -r /app/configurations/* "$CONFIGSOURCE"/ || true
rm -r /app/configurations
fi