You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
336 B
21 lines
336 B
#! /bin/sh
|
|
|
|
export S3_ACCESS_KEY_ID=123
|
|
export S3_SECRET_ACCESS_KEY=123
|
|
export S3_BUCKET=123
|
|
export MYSQL_HOST=123
|
|
export MYSQL_USER=123
|
|
export MYSQL_PASSWORD=123
|
|
|
|
OUT=$(/bin/bash backup.sh)
|
|
|
|
if [ "$?" == "0" ]; then
|
|
echo "Backup exit code was 0"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$OUT" == "" ]; then
|
|
echo "OUTPUT was '$OUT'"
|
|
exit 1
|
|
fi
|
|
|