Skip to content

Commit 36b404f

Browse files
committed
fix: fixup theming setup during devstack provisioning
Two changes: 1. By default, we clone repos with SSH now. Update the REPO_URL accordingly. 2. Updates the relevant lines to setup to setup comprehensive theming correctly.
1 parent b86702f commit 36b404f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provision-set-edx-theme.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# This script sets up the edX theme in LMS and CMS.
44

5-
REPO_URL="https://github.com/edx/edx-themes"
5+
REPO_URL="git@github.com:edx/edx-themes.git"
66
THEME_DIR="/edx/src/edx-themes/edx-platform"
77
DEVSTACK_FILE="../edx-platform/lms/envs/devstack.py"
88

@@ -24,7 +24,7 @@ sed -i '' "/COMPREHENSIVE_THEME_DIRS = \[/a\\
2424
\"$THEME_DIR\",
2525
" "$DEVSTACK_FILE"
2626
sed -i '' "s|^# \]|]|" "$DEVSTACK_FILE"
27-
sed -i '' "s|^# TEMPLATES\[1\]\[\"DIRS\"\] = _make_mako_template_dirs|TEMPLATES[1][\"DIRS\"] = _make_mako_template_dirs|" "$DEVSTACK_FILE"
27+
sed -i '' "s|^# TEMPLATES\[1\]\[\"DIRS\"\] = Derived(_make_mako_template_dirs)|TEMPLATES[1][\"DIRS\"] = Derived(_make_mako_template_dirs)|" "$DEVSTACK_FILE"
2828
sed -i '' "s|^# derive_settings(__name__)|derive_settings(__name__)|" "$DEVSTACK_FILE"
2929

3030

0 commit comments

Comments
 (0)