Github bot : script beautyshied

This commit is contained in:
github-actions
2022-12-25 00:12:30 +00:00
parent b7fa0269a6
commit 2d9fc1c01f
3 changed files with 10 additions and 10 deletions

View File

@@ -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