prepare: set execute permission for all.

This commit is contained in:
tecnovert 2019-07-25 17:47:24 +02:00
parent a5de9dbee4
commit a1b3aa74a1
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
2 changed files with 3 additions and 3 deletions

View file

@ -16,8 +16,8 @@ RUN wget -O bs.zip https://github.com/tecnovert/basicswap/archive/master.zip; \
# Download binaries, these will be part of the docker image
RUN basicswap-prepare -datadir=/opt -preparebinonly
RUN useradd -ms /bin/bash user; \
mkdir /coindata && chown user /coindata
RUN useradd -ms /bin/bash user && \
mkdir /coindata && chown user -R /coindata
USER user
WORKDIR /home/user

View file

@ -174,7 +174,7 @@ def prepareCore(coin, version, settings, data_dir):
with open(out_path, 'wb') as fout:
fout.write(fi.read())
fi.close()
os.chmod(out_path, stat.S_IRWXU)
os.chmod(out_path, stat.S_IRWXU | stat.S_IXGRP | stat.S_IXOTH)
def prepareDataDir(coin, settings, data_dir, chain, particl_mnemonic):