Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #219 from CounterpartyXCP/develop
Browse files Browse the repository at this point in the history
fixes #218, also change config permissions to 0660, instead of 0660
  • Loading branch information
Robby Dermody committed Feb 12, 2015
2 parents 7e031a9 + 769a836 commit eb06433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def install_binaries():
if not os.path.exists("/tmp/%s" % BITCOIND_DIRNAME):
runcmd("wget -O /tmp/%s %s" % (BITCOIND_FILENAME, BITCOIND_URL))
runcmd('bash -c "echo \"%s /tmp/%s\" | sha256sum -c"' % (BITCOIND_SHA256_HASH, BITCOIND_FILENAME))
runcmd("tar -C /tmp -zxvf /tmp/%s" % BITCOIND_FILENAME)
runcmd("tar -C /tmp --no-overwrite-dir -zxvf /tmp/%s" % BITCOIND_FILENAME)
#dont install libbitcoinconsensus.so for now on the system...not needed
runcmd("install -C --backup=off -m 755 -o root -g root /tmp/%s/bin/* /usr/local/bin/" % BITCOIND_DIRNAME)
runcmd("ln -sf /usr/local/bin/bitcoind /usr/bin/bitcoind && ln -sf /usr/local/bin/bitcoin-cli /usr/bin/bitcoin-cli")
Expand Down Expand Up @@ -433,7 +433,7 @@ def create_config(dir_base, cfg_name, default_config):
logging.info("%s config file already exists at: '%s'" % (dir_base, cfg_path))
#set/reset proper file ownership and mode
os.chown(cfg_path, daemon_username_uid, username_gid)
os.chmod(cfg_path, 0o660)
os.chmod(cfg_path, 0o600)

create_config('counterparty', 'server.conf', DEFAULT_CONFIG)
if questions.with_testnet:
Expand Down

0 comments on commit eb06433

Please sign in to comment.