Skip to content

Commit

Permalink
improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkamprath committed May 11, 2020
1 parent a95ac9a commit a4a53ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
### Changed
* Improved error handling in the RTMP configuration generation script.
* Improved error handling in the Lindode deploy script.

### Fixed
* Correct bug in RTMP configuration generation when the audio bit rate is set.
Expand Down
8 changes: 6 additions & 2 deletions deployment-scripts/linode-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ ssh-keyscan -T 240 ${linode_ip_addr} >> ~/.ssh/known_hosts

# copy the passed RTMP server config file to the Server
echo "Copying '${RTMP_SERVER_CONFIG_FILEPATH}' to path /root/rtmp_server_config.json on Linode ${linode_id}"
scp "$RTMP_SERVER_CONFIG_FILEPATH" root@"${linode_ip_addr}":/root/rtmp_server_config.json

scp -q "$RTMP_SERVER_CONFIG_FILEPATH" root@"${linode_ip_addr}":/root/rtmp_server_config.json
if [ $? -ne 0 ]; then
echo "ERROR - Unable to copy '${RTMP_SERVER_CONFIG_FILEPATH}' to linode ${linode_id}. Please terminate the Linode with this command:"
echo " linode-cli linodes delete ${linode_id}"
exit 1
fi
# now launch docker container
echo "Launch kamprath/multistreaming-server:latest Docker image."
docker_proc_id=$(ssh root@"$linode_ip_addr" \
Expand Down

0 comments on commit a4a53ec

Please sign in to comment.