Fix work-node setup script
Modify user and usergroup when change the authority of /opt/cello
@@ -24,12 +24,13 @@ 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
