def _one_to_two(datadir):
new_site_name = '<STR_LIT>'<EOL>split = _split_path(datadir)<EOL>print('<STR_LIT>')<EOL>env_name = split[<NUM_LIT:1>]<EOL>remove_container('<STR_LIT>' + env_name)<EOL>remove_container('<STR_LIT>' + env_name)<EOL>remove_container('<STR_LIT>' + env_name)<EOL>print('<STR_LIT>')<EOL>to_move = (['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'] +<EOL>(['<STR_LIT>'] if not is_boot2docker() else []))<EOL>site_path = path_join(datadir, '<STR_LIT>', new_site_name)<EOL>if not exists(site_path):<EOL><INDENT>makedirs(site_path)<EOL><DEDENT>web_command(<EOL>command=['<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>' + new_site_name] +<EOL>to_move,<EOL>ro={scripts.get_script_path('<STR_LIT>'): '<STR_LIT>'},<EOL>rw={datadir: '<STR_LIT>'},<EOL>clean_up=True<EOL>)<EOL>if is_boot2docker():<EOL><INDENT>rename_container('<STR_LIT>' + env_name,<EOL>'<STR_LIT>' + env_name + '<STR_LIT:_>' + new_site_name)<EOL><DEDENT>with open(path_join(datadir, '<STR_LIT>')) as pd:<EOL><INDENT>project = pd.read()<EOL><DEDENT>cp = SafeConfigParser()<EOL>config_loc = path_join(project, '<STR_LIT>')<EOL>cp.read([config_loc])<EOL>new_section = '<STR_LIT>' + new_site_name<EOL>cp.add_section(new_section)<EOL>port = cp.get('<STR_LIT>', '<STR_LIT:port>')<EOL>cp.remove_option('<STR_LIT>', '<STR_LIT:port>')<EOL>cp.set(new_section, '<STR_LIT:port>', port)<EOL>with open(config_loc, '<STR_LIT:w>') as config:<EOL><INDENT>cp.write(config)<EOL><DEDENT>cp = SafeConfigParser()<EOL>config_loc = path_join(site_path, '<STR_LIT>')<EOL>cp.read([config_loc])<EOL>cp.set('<STR_LIT>', '<STR_LIT>', generate_password())<EOL>with open(config_loc, '<STR_LIT:w>') as config:<EOL><INDENT>cp.write(config)<EOL><DEDENT>with open(path_join(datadir, '<STR_LIT>'), '<STR_LIT:w>') as f:<EOL><INDENT>f.write('<STR_LIT:2>')<EOL><DEDENT>
After this command, your environment will be converted to format version {}.
and will only work with datacats version exceeding and including 1.0.0.
This migration is necessary to support multiple sites within the same environment.
Your current site will be kept and will be named "primary".

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