Skip to content

Commit

Permalink
More tweaks (#1301)
Browse files Browse the repository at this point in the history
Adding the set -e option exposed that setcap was failing (on travis).
Since there are calls to setcap in prepare-base and the capabilities
aren't even needed on travis, I'm just removing the calls to setcap.
  • Loading branch information
dhylands authored Aug 24, 2018
1 parent a39c215 commit 5a35427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions image/build-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ export NVM_DIR="$HOME/.nvm"
nvm install ${NODE_VERSION}
nvm use ${NODE_VERSION}

# Allow node and python3 to use the Bluetooth adapter
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
sudo setcap cap_net_raw+eip $(eval readlink -f `which python3`)

npm install -g yarn

# Build the node modules, cross compiling any native code.
Expand Down
4 changes: 2 additions & 2 deletions image/image-to-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ image_to_aws() {
aws s3 cp --acl=public-read "${IMG_FILENAME}.zip.sha256sum" "${AWS_DIR}"

echo "AWS URLs"
echo "https://s3-us-west-1.amazonaws.com/mozillagatewayimages/${AWS_DIR}/${IMG_FILENAME}.zip"
echo "https://s3-us-west-1.amazonaws.com/mozillagatewayimages/${AWS_DIR}/${IMG_FILENAME}.zip.sha256sum"
echo "https://s3-us-west-1.amazonaws.com/mozillagatewayimages/${AWS_SUBDIR}/${IMG_FILENAME}.zip"
echo "https://s3-us-west-1.amazonaws.com/mozillagatewayimages/${AWS_SUBDIR}/${IMG_FILENAME}.zip.sha256sum"
}

###########################################################################
Expand Down

0 comments on commit 5a35427

Please sign in to comment.