{% load i18n %}
{% blocktrans %} Your site's data directory isn't properly set up. This directory is where Review Board will store various state and configuration needed to access repositories. {% endblocktrans %}
{% if data_dir == "" %}{% blocktrans %} The current data directory wasn't able to be found. Please ensure you have a data directory inside your site's directory, and that it is writable by the web server. Then ensure that your web server's configuration has the HOME environment variable set to the data directory. {% endblocktrans %}
{% else %}{% blocktrans %} Your data directory is currently at: {{data_dir}} {% endblocktrans %}
{% if expected_data_dir != data_dir %}{% blocktrans %} The data directory is not where we expect it. Unless you have a very custom setup, it should probably be at {{expected_data_dir}}. You may need to set the $HOME environment variable in the data directory. {% endblocktrans %}
{% endif %} {% endif %} {# This should handle the empty $HOME and non-standard name cases from above. #} {% if expected_data_dir != data_dir %}{% blocktrans %} If you're using mod_python and Apache, you may need to add this line to your Apache configuration: {% endblocktrans %}
SetEnv HOME "{{expected_data_dir}}"
{% blocktrans %} If using fastcgi or wsgi, you want to check the reviewboard.fcgi or reviewboard.wsgi file in your site's htdocs directory and add the following if missing: {% endblocktrans %}
os.environ['HOME'] = '{{expected_data_dir}}'
{% blocktrans %} If you're running this on Windows, you need to add the 'HOME' variable to your environment variables. Set HOME to: {% endblocktrans %}
'{{expected_data_dir}}'{% endif %} {% if not writable and data_dir != "" %}
{% blocktrans %} The data directory must be writable by the web server. On Linux/Unix/Mac, you can fix this by typing: {% endblocktrans %}
$ sudo chown -R {{server_user}} "{{expected_data_dir}}"
{% blocktrans %} On Windows, right-click the data directory and change the ownership to {{server_user}} and restart the server. {% endblocktrans %}
{% endif %}