summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2021-10-15 10:01:48 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2021-10-15 10:01:48 (GMT)
commitbb5e118f1b6d423918945ee24683d305d4730c37 (patch)
treebdb4e51755b9da5a2f0c8b1732b50b980b3565bc
parenteb3e59154b0a613c59487f13da8161c6f1c6a703 (diff)
downloadmisc-fred-bb5e118f1b6d423918945ee24683d305d4730c37.zip
misc-fred-bb5e118f1b6d423918945ee24683d305d4730c37.tar.gz
misc-fred-bb5e118f1b6d423918945ee24683d305d4730c37.tar.bz2
grand lyon: fix copying of media filesHEADmain
-rw-r--r--grandlyon/scripts/copy-portal-users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grandlyon/scripts/copy-portal-users.py b/grandlyon/scripts/copy-portal-users.py
index 6891ba1..9108e39 100644
--- a/grandlyon/scripts/copy-portal-users.py
+++ b/grandlyon/scripts/copy-portal-users.py
@@ -31,4 +31,4 @@ subprocess.call(['sudo', '-u', 'combo', 'combo-manage', 'tenant_command', 'runsc
orig_media_dir = '/var/lib/combo/tenants/%s/media' % orig_site
if os.path.exists(orig_media_dir) and os.listdir(orig_media_dir):
- subprocess.call(['sudo', '-u', 'combo', 'cp', '-ar', orig_media_dir + '*', '/var/lib/combo/tenants/%s/' % dest_site])
+ subprocess.call(['sudo', '-u', 'combo', 'cp', '-ar', orig_media_dir, '/var/lib/combo/tenants/%s/' % dest_site])