def tweak(environment, opts):
environment.require_data()<EOL>if opts['<STR_LIT>']:<EOL><INDENT>print("<STR_LIT>")<EOL>environment.install_postgis_sql()<EOL><DEDENT>if opts['<STR_LIT>']:<EOL><INDENT>print(('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>.format(environment.name)))<EOL>environment.add_extra_container('<STR_LIT>', error_on_exists=True)<EOL><DEDENT>if opts['<STR_LIT>']:<EOL><INDENT>environment.create_admin_set_password(confirm_password())<EOL><DEDENT>
Commands operating on environment data

Usage:
  datacats tweak --install-postgis [ENVIRONMENT]
  datacats tweak --add-redis [ENVIRONMENT]
  datacats tweak --admin-password [ENVIRONMENT]

Options:
  --install-postgis    Install postgis in ckan database
  --add-redis          Adds redis next time this environment reloads
  -s --site=NAME       Choose a site to tweak [default: primary]
  -p --admin-password  Prompt to change the admin password

ENVIRONMENT may be an environment name or a path to an environment directory.

Default: '.'