Commit e241342b authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

fix

parent 31c76c3c
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s
    # Then run post-processing command in the same container
    soffice_cmd = f"soffice --headless --convert-to docx --outdir /data {input_path}"
    # TODO: Add post-processing command here
    post_cmd = f'chown $(stat -c "%u:%g" {input_path}) {input_path.name}'
    post_cmd = f'chown $(stat -c "%u:%g" /data/{input_path}) /data/{input_path.name}'
    # combined_cmd = f"{soffice_cmd} && {post_cmd}"
    combined_cmd = f"{soffice_cmd} && {post_cmd}"