Skip to content

Commit

Permalink
Cambio path por variable de ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Sobko committed May 2, 2019
1 parent 69c903c commit 5b5fd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base_portal/roles/portal/templates/ckan/production.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ ckan.display_timezone = server
#ckan.recaptcha.privatekey =
licenses_group_url = file:///var/lib/ckan/theme_config/licenses.json
# ckan.template_footer_end =
units_url = file:///var/lib/ckan/theme_config/units.json
units_url = {{ CKAN_DIST_CONFIG }}/units.json


## Internationalisation Settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ config_file="{{ CKAN_CONFIG }}/{{ CKAN_CONFIG_FILE }}";
if ! grep -q "units_url" "$config_file"; then
var=$(grep -n '\[app:main\]' $config_file | awk -F ":" '{print $1}')
let "var=var+1"
sed -i "${var}i units_url = file:///var/lib/ckan/theme_config/units.json" $config_file
sed -i "${var}i units_url = $units_json_final_path" $config_file
cp $units_json_path $units_json_final_path
fi

0 comments on commit 5b5fd12

Please sign in to comment.