Create pub dirs with chmod 755 so local nginx can serve them
This commit is contained in:
parent
a6dd9ee3e4
commit
c1e60a4adf
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user