CC-2600 : Upgrading from 1.8->1.9 wipe all shows content
This commit is contained in:
parent
2f107a36f2
commit
7c87d2024a
1 changed files with 10 additions and 3 deletions
|
@ -52,9 +52,16 @@ for root, dirs, files in os.walk(mmconfig.storage_directory):
|
|||
for f in files:
|
||||
old_filepath = os.path.join(root, f)
|
||||
new_filepath = mmc.organize_new_file(old_filepath)
|
||||
|
||||
if new_filepath is not None:
|
||||
pair = old_filepath, new_filepath
|
||||
pairs.append(pair)
|
||||
mmc.set_needed_file_permissions(new_filepath, False)
|
||||
#incase file has a metadata problem.
|
||||
else:
|
||||
pair = old_filepath, old_filepath
|
||||
pairs.append(pair)
|
||||
mmc.set_needed_file_permissions(old_filepath, False)
|
||||
|
||||
#need to set all the dirs in imported to be owned by www-data.
|
||||
command = "chown -R www-data " + stor_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue