Commit 1736344b authored by Gabriel Monnerat's avatar Gabriel Monnerat

fixup! [SlapOS Core] Improve configure-local command and add test for this command

To copy those files we should check first if exists because after generate the
egg those files does not exist anymore and it blocks to install the package
parent 5c6ca9be
......@@ -14,7 +14,9 @@ for f in sorted(glob.glob(os.path.join('slapos', 'README.*.txt'))):
slapos_folder_path = os.path.dirname(__file__)
for template_name in ('slapos-client.cfg.example',
'slapos-proxy.cfg.example', 'slapos.cfg.example'):
copyfile(os.path.join(slapos_folder_path, template_name),
template_path = os.path.join(slapos_folder_path, template_name)
if os.path.exists(template_path):
copyfile(template_path,
os.path.join(slapos_folder_path, 'slapos', template_name))
additional_install_requires = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment