grand lyon: copy to current tenant
This commit is contained in:
parent
e63ace15f8
commit
b411f1f7e6
|
@ -45,13 +45,7 @@ for object_type in ('carddefs', 'formdefs', 'workflows', 'categories', 'datasour
|
||||||
else:
|
else:
|
||||||
print('missing source tenant')
|
print('missing source tenant')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if os.path.exists('/var/lib/wcs/%s' % dest_site):
|
dest_base_dir = get_publisher().app_dir
|
||||||
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)
|
|
||||||
orig_dir = os.path.join('%s/%s/' % (orig_base_dir, object_type))
|
orig_dir = os.path.join('%s/%s/' % (orig_base_dir, object_type))
|
||||||
dest_dir = os.path.join('%s/%s/' % (dest_base_dir, object_type))
|
dest_dir = os.path.join('%s/%s/' % (dest_base_dir, object_type))
|
||||||
if not os.path.exists(orig_dir):
|
if not os.path.exists(orig_dir):
|
||||||
|
|
Loading…
Reference in New Issue