From c1e60a4adf6339c0390e66ab07b63a242442d52a Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 13 Mar 2020 21:33:28 +0100 Subject: [PATCH] Create pub dirs with chmod 755 so local nginx can serve them --- usr/lib/python3.8/spoc/app.py | 2 +- usr/lib/python3.8/spoc/image.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/python3.8/spoc/app.py b/usr/lib/python3.8/spoc/app.py index 174b359..22b8175 100644 --- a/usr/lib/python3.8/spoc/app.py +++ b/usr/lib/python3.8/spoc/app.py @@ -131,7 +131,7 @@ class App: def publish(self, filename): builddir = os.path.dirname(filename) - os.makedirs(PUB_APPS_DIR, 0o700, True) + os.makedirs(PUB_APPS_DIR, 0o755, True) files = repo_publish.TarSizeCounter() archive_path = os.path.join(PUB_APPS_DIR, f'{self.name}.tar.xz') with tarfile.open(archive_path, 'w:xz') as tar: diff --git a/usr/lib/python3.8/spoc/image.py b/usr/lib/python3.8/spoc/image.py index 5344389..6475b17 100644 --- a/usr/lib/python3.8/spoc/image.py +++ b/usr/lib/python3.8/spoc/image.py @@ -73,7 +73,7 @@ class Image: repo_local.register_image(self.name, definition) def publish(self): - os.makedirs(PUB_LAYERS_DIR, 0o700, True) + os.makedirs(PUB_LAYERS_DIR, 0o755, True) files = repo_publish.TarSizeCounter() archive_path = os.path.join(PUB_LAYERS_DIR, f'{self.name}.tar.xz') with tarfile.open(archive_path, 'w:xz') as tar: