Skip to content
Closed
Changes from all commits
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=Du=rwx,Dgo=rx,Fu=rw,Fgo=r ${REDMINE_THEMES_DIR}/ ${REDMINE_INSTALL_DIR}/themes/
# 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