Skip to content

Commit

Permalink
fix: properly install default theme if no theme dependencies or volum…
Browse files Browse the repository at this point in the history
…es exist (visiblevc#172)

* feat: update port info

* fix: theme install folder

* fix: revert db port

* Update run.sh

Co-Authored-By: Derek Sifford <dereksifford@gmail.com>

* Update run.sh

Co-Authored-By: Derek Sifford <dereksifford@gmail.com>

Co-authored-by: Derek Sifford <dereksifford@gmail.com>
  • Loading branch information
jiverson and dsifford authored Jan 29, 2020
1 parent 6ecc1a1 commit d2005df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Thumbs.db
.c9
.sass-cache/
.vscode
.history

# Wordpress
wp-content/*
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ init() {
done

# If no theme dependencies or volumes exist, fall back to default
if [[ ${#theme_deps[@]} == 0 && -d /app/wp-content/themes && $(find /app/wp-content/themes/* -maxdepth 0 -type d | wc -l) == 0 ]]; then
if [[ (${#theme_deps[@]} == 0 && ! -d /app/wp-content/themes) ]]; then
theme_deps["$default_theme"]="$default_theme"
fi

Expand Down

0 comments on commit d2005df

Please sign in to comment.