def _two_to_one(datadir):
_, env_name = _split_path(datadir)<EOL>print('<STR_LIT>')<EOL>remove_container('<STR_LIT>'.format(env_name))<EOL>remove_container('<STR_LIT>'.format(env_name))<EOL>remove_container('<STR_LIT>'.format(env_name))<EOL>print('<STR_LIT>')<EOL>if exists(path_join(datadir, '<STR_LIT>')):<EOL><INDENT>os.remove(path_join(datadir, '<STR_LIT>'))<EOL><DEDENT>to_move = (['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'] +<EOL>(['<STR_LIT>'] if not is_boot2docker() else []))<EOL>web_command(<EOL>command=['<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'] + to_move,<EOL>ro={scripts.get_script_path('<STR_LIT>'): '<STR_LIT>'},<EOL>rw={datadir: '<STR_LIT>'}<EOL>)<EOL>pgdata_name = '<STR_LIT>'.format(env_name)<EOL>if is_boot2docker() and inspect_container(pgdata_name):<EOL><INDENT>rename_container(pgdata_name, '<STR_LIT>'.format(env_name))<EOL><DEDENT>print('<STR_LIT>')<EOL>with open(path_join(datadir, '<STR_LIT>')) as pd:<EOL><INDENT>datacats_env_location = path_join(pd.read(), '<STR_LIT>')<EOL><DEDENT>cp = SafeConfigParser()<EOL>cp.read(datacats_env_location)<EOL>cp.set('<STR_LIT>', '<STR_LIT:port>', cp.get('<STR_LIT>', '<STR_LIT:port>'))<EOL>cp.remove_section('<STR_LIT>')<EOL>with open(datacats_env_location, '<STR_LIT:w>') as config:<EOL><INDENT>cp.write(config)<EOL><DEDENT>cp = SafeConfigParser()<EOL>cp.read(path_join(datadir, '<STR_LIT>'))<EOL>cp.remove_option('<STR_LIT>', '<STR_LIT>')<EOL>with open(path_join(datadir, '<STR_LIT>'), '<STR_LIT:w>') as config:<EOL><INDENT>cp.write(config)<EOL><DEDENT>
After this command, your environment will be converted to format version {}
and will not work with Datacats versions beyond and including 1.0.0.
This format version doesn't support multiple sites, and after this only your
"primary" site will be usable, though other sites will be maintained if you
wish to do a migration back to a version which supports multisite.

Would you like to continue the migration? (y/n) [n]: