Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions assets/runtime/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,12 @@ install_plugins() {
}

install_themes() {
if [[ -d ${REDMINE_THEMES_DIR} ]]; then
if [[ -d ${REDMINE_THEMES_DIR} && -n "$(ls -A ${REDMINE_THEMES_DIR})" ]]; then
echo "Installing themes..."
rsync -avq --chown=${REDMINE_USER}:${REDMINE_USER} ${REDMINE_THEMES_DIR}/ ${REDMINE_INSTALL_DIR}/themes/
rsync -avq --chown=${REDMINE_USER}:${REDMINE_USER} --chmod=644 ${REDMINE_THEMES_DIR}/ ${REDMINE_INSTALL_DIR}/themes/
Comment thread
Copilot marked this conversation as resolved.
Outdated
# if themes are installed, we need to precompile assets
echo "Precompiling assets. Please be patient, this could take a while..."
execute_raketask assets:precompile
Comment on lines +1189 to +1191
fi
}

Expand Down
Loading