Commit de1f81e7 authored by Jaime L Magiera's avatar Jaime L Magiera
Browse files

improved file handling

parent 019de554
#!/bin/bash -e
EXTRA_THEMES_PATH="/opt/app-root/src/omeka-themes/"
EXTRA_MODULES_PATH="/opt/app-root/src/omeka-modules/"
EXTRA_THEMES_PATH="/opt/app-root/src/themes/"
EXTRA_MODULES_PATH="/opt/app-root/src/modules/"
if [ -s $EXTRA_THEMES_PATH ] && [ "$(ls -A $EXTRA_THEMES_PATH)" ]; then
echo "$EXTRA_THEMES_PATH is not empty, so we are copying items from it."
mv /opt/app-root/src/omeka-themes/* /opt/app-root/src/omeka-s/themes/
if [ -d $EXTRA_THEMES_PATH ]; then
echo "$EXTRA_THEMES_PATH exists."
for file in $EXTRA_THEMES_PATH; do
if [ -d "$file" ]; then
echo "$file"
mv $file "/opt/app-root/src/omeka-s/themes/"
fi
done
else
echo "No additional themes to copy"
fi
if [ -s $EXTRA_MODULES_PATH ] && [ "$(ls -A $EXTRA_MODULES_PATH)" ]; then
echo "$EXTRA_MODULES_PATH is not empty, so we are copying items from it."
mv /opt/app-root/src/omeka-modules/* /opt/app-root/src/omeka-s/modules/
if [ -d $EXTRA_MODULES_PATH ]; then
echo "$EXTRA_MODULES_PATH exists."
for file in $EXTRA_MODULES_PATH; do
if [ -d "$file" ]; then
echo "$file"
mv $file "/opt/app-root/src/omeka-s/modules/"
fi
done
else
echo "No additional modules to copy"
echo "No additional modules to copy"
fi
${STI_SCRIPTS_PATH}/assemble-base
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment