Skip to content

Commit

Permalink
[CE-149] Fix work-node setup script
Browse files Browse the repository at this point in the history
Modify user and usergroup when change the authority of /opt/cello

Change-Id: Ied6641ce611d33dee88df70cba297e709160e4cd
Signed-off-by: qiang0723 <wqiang0723@gmail.com>
  • Loading branch information
qiang0723 committed Oct 16, 2017
1 parent 4ea2459 commit 4420125
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/worker_node/setup_docker_worker_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ bash ./download_images.sh
echo_b "Copy required fabric 1.0 artifacts"
ARTIFACTS_DIR=/opt/cello
USER=`whoami`
USERGROUP=`id -gn`
echo_b "Checking local artifacts path ${ARTIFACTS_DIR}..."
[ ! -d ${ARTIFACTS_DIR} ] \
&& echo_r "Local artifacts path ${ARTIFACTS_DIR} not existed, creating one" \
&& sudo mkdir -p ${ARTIFACTS_DIR} \
&& sudo cp -r ../../src/agent/docker/_compose_files/fabric-1.0 ${ARTIFACTS_DIR} \
&& sudo chown -R ${USER}:${USER} ${ARTIFACTS_DIR}
&& sudo chown -R ${USER}:${USERGROUP} ${ARTIFACTS_DIR}

echo_b "Setup ip forward rules"
sudo sysctl -w net.ipv4.ip_forward=1

echo_g "Setup done"
echo_g "Setup done"

0 comments on commit 4420125

Please sign in to comment.