Commit 01228bc9 by Saleem Latif

resolve permission issues

parent 056653b2
......@@ -103,6 +103,9 @@ ECOMMERCE_PAYMENT_PROCESSOR_CONFIG:
ECOMMERCE_PLATFORM_NAME: 'Your Platform Name Here'
ECOMMERCE_THEME_SCSS: 'sass/themes/default.scss'
# Directory name inside edx-themes repo that contain ecommerce themes
ECOMMERCE_THEMES_DIR_NAME: 'ecommerce'
ECOMMERCE_COMPREHENSIVE_THEME_DIR: !!null
ECOMMERCE_ENABLE_COMPREHENSIVE_THEMING: false
ECOMMERCE_DEFAULT_SITE_THEME: !!null
......
......@@ -13,8 +13,6 @@
dependencies:
- common
- supervisor
- role: edx-themes
when: "{{ ECOMMERCE_ENABLE_COMPREHENSIVE_THEMING }}"
- role: edx_service
edx_service_name: "{{ ecommerce_service_name }}"
edx_service_config: "{{ ECOMMERCE_SERVICE_CONFIG }}"
......@@ -24,4 +22,8 @@ dependencies:
edx_service_packages:
debian: "{{ ecommerce_debian_pkgs }}"
redhat: "{{ ecommerce_redhat_pkgs }}"
- role: edx-themes
sync_src_themes_dir_name: "{{ ECOMMERCE_THEMES_DIR_NAME }}"
sync_dest_themes_dir: "{{ ECOMMERCE_COMPREHENSIVE_THEME_DIR }}"
when: "{{ ECOMMERCE_ENABLE_COMPREHENSIVE_THEMING }}"
- oraclejdk
......@@ -13,7 +13,8 @@
themes_service_name: "edx-themes"
themes_user: "{{ themes_service_name }}"
themes_home: "{{ COMMON_CFG_DIR }}/{{ themes_service_name }}"
themes_code_dir: "{{ themes_home }}/{{ themes_service_name }}"
THEMES_CODE_DIR: "{{ themes_home }}/{{ themes_service_name }}"
THEMES_GIT_IDENTITY: !!null
THEMES_GIT_PROTOCOL: "{{ COMMON_GIT_PROTOCOL }}"
......@@ -29,5 +30,5 @@ THEMES_REPOS:
PATH: "{{ THEMES_GIT_PATH }}"
REPO: "{{ THEMES_REPO }}"
VERSION: "{{ THEMES_VERSION }}"
DESTINATION: "{{ themes_code_dir }}"
DESTINATION: "{{ THEMES_CODE_DIR }}"
SSH_KEY: "{{ THEMES_GIT_IDENTITY }}"
......@@ -25,6 +25,8 @@
#
# dependencies:
# - role: themes
# sync_src_themes_dir_name: "edx-platform"
# sync_dest_themes_dir: "/edx/app/edxapp/edx-platform/themes"
# when do_setup_themes
#
......@@ -111,3 +113,12 @@
tags:
- install
- install:code
# while synchronizing we need to make sure that directory path ends with a trailing slash,
# otherwise synchronize will copy the src dir instead of the files/dirs included in the src directory
- name: synchronize theme directories
synchronize: >
src={{ THEMES_CODE_DIR }}/{{ sync_src_themes_dir_name }}/
dest= {{ sync_dest_themes_dir }}/
when: sync_src_themes_dir_name is defined and sync_dest_themes_dir is defined
Markdown is supported
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