grand lyon: copy to current tenant

This commit is contained in:
Frédéric Péters 2021-06-22 10:41:02 +02:00
parent e63ace15f8
commit b411f1f7e6
1 changed files with 1 additions and 7 deletions

View File

@ -45,13 +45,7 @@ for object_type in ('carddefs', 'formdefs', 'workflows', 'categories', 'datasour
else:
print('missing source tenant')
sys.exit(1)
if os.path.exists('/var/lib/wcs/%s' % dest_site):
dest_base_dir = '/var/lib/wcs/%s' % dest_site
elif os.path.exists('/var/lib/wcs/tenants/%s' % dest_site):
dest_base_dir = '/var/lib/wcs/tenants/%s' % dest_site
else:
print('missing destination tenant')
sys.exit(1)
dest_base_dir = get_publisher().app_dir
orig_dir = os.path.join('%s/%s/' % (orig_base_dir, object_type))
dest_dir = os.path.join('%s/%s/' % (dest_base_dir, object_type))
if not os.path.exists(orig_dir):