Create pub dirs with chmod 755 so local nginx can serve them

This commit is contained in:
Disassembler 2020-03-13 21:33:28 +01:00
parent a6dd9ee3e4
commit c1e60a4adf
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: