Commit 373ee353 by John Jarvis

fixing help

parent b969a183
......@@ -24,16 +24,10 @@ usage() {
an s3 bucket, will send mail to {{ COMMON_S3_LOGS_NOTIFY_MAIL }}
on failures.
Usage: $PROG <path-to-sync> <s3-bucket-path>
Usage: $PROG
-v add verbosity (set -x)
-n echo what will be done
-h this
<s3-path> - path to s3 bucket and folder for sync
<path-to-sync> - path on the filesystem to sync
Example:
/edx/bin/send-logs-to-s3 -v /edx/var/log/lms s3://edx-ec2-app-logs
EO
}
......@@ -53,13 +47,6 @@ while getopts "vhn" opt; do
esac
done
if [[ -z $1 || -z $2 ]]; then
echo
echo "ERROR: You must specify an s3 url and a path"
usage
exit 1
fi
# Ensure that curl, s3cmd and mail are
# installed prior to execution
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment