Open matiasbattocchia opened 3 years ago
I get this error as well
Did anyone ever solve this? I hit this as well. Did you have to call something to change the permissions?
Hi, did anyone ever solve this?
Trying to set the permission might work:
def extract_libreoffice():
tar_path = '/opt/lo.tar.gz'
if os.path.exists(tar_path):
logger.info("Extracting LibreOffice...")
with tarfile.open(tar_path, 'r:gz') as tar:
tar.extractall('/tmp')
**os.chmod('/tmp/instdir', 0o755, follow_symlinks=True)**
logger.info("Extraction complete.")
else:
logger.error("Tar file for LibreOffice not found.")
libreoffice_extracted = True
Using any of these layers / compression methods.
Lambda logs: