fix unpack.sh chmod
This commit is contained in:
parent
63906d328f
commit
bbd568260a
1 changed files with 3 additions and 2 deletions
5
btv
5
btv
|
@ -252,8 +252,9 @@ def serialize(snap, outdir, key, snap_from=None):
|
|||
f.write("#! /bin/sh\n\nsha512sum --check manifest.sha512\n")
|
||||
os.chmod(f.name, 0o500)
|
||||
|
||||
shutil.copy("/usr/share/btv/unpack.sh", os.path.join(directory, "unpack.sh"))
|
||||
os.chmod("unpack.sh", 0o500)
|
||||
unpack_path = os.path.join(directory, "unpack.sh")
|
||||
shutil.copy("/usr/share/btv/unpack.sh", unpack_path)
|
||||
os.chmod(unpack_path, 0o500)
|
||||
|
||||
## fix permissions and ownership of created objects
|
||||
outdir_stat = os.stat(outdir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue