Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
avatar-lavventura committed Apr 7, 2018
1 parent 1578dff commit c12c9d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
WHOAMI=""
CLUSTER_ID="0xffffffffffffffffffffffffffffffffffffffff"
EBLOCPATH=""
CLUSTER_ID=""

IPFS_REPO ="/home/" + WHOAMI + "/.ipfs";
LOG_PATH ="/home/" + WHOAMI + "/.eBlocBroker";
Expand Down
8 changes: 4 additions & 4 deletions initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,16 @@ sed -i.bak 's/'$lineOld'/'$lineNew'/' $currentDir/slurmScript.sh && rm $currentD
lineOld='0xffffffffffffffffffffffffffffffffffffffff';
lineNew=$(echo $COINBASE);

sed -i.bak 's/'$lineOld'/'$lineNew'/' $currentDir/constants.py && rm $currentDir/constants.py.bak
sed -i.bak 's/'$lineOld'/'$lineNew'/' $currentDir/eBlocBrokerHeader.js && rm $currentDir/eBlocBrokerHeader.js.bak
sed -i.bak 's/'$lineOld'/'$lineNew'/' $currentDir/nodePaths.js && rm $currentDir/nodePaths.js.bak
sed -i.bak "s/^\(CLUSTER_ID=\).*/\1\"$lineNew\"/" $currentDir/constants.py && rm $currentDir/constants.py.bak
sed -i.bak 's/'$lineOld'/'$lineNew'/' $currentDir/nodePaths.js && rm $currentDir/nodePaths.js.bak
#-----------------------------------------------------
var=$(echo $currentDir | sed 's/\//\\\//g')
sudo sed -i.bak "s/^\(MailProg=\).*/\1$var\/slurmScript.sh/" /usr/local/etc/slurm.conf && sudo rm /usr/local/etc/slurm.conf.bak
grep "MailProg" /usr/local/etc/slurm.conf

# IPFS setups
sudo chown -R "$logname:$logname" $HOME/.ipfs/
l=$(logname)
sudo chown -R "$l:$l" $HOME/.ipfs/

echo -e "Note: Update the following file 'eudatPassword.txt' with your EUDAT account's password. \nBest to make sure the file is not readable or even listable for anyone but you. You achieve this with:\n 'chmod 700 eudatPassword.txt'"

Expand Down

0 comments on commit c12c9d3

Please sign in to comment.