mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 11:32:16 +00:00
added -r noreply@sapsailing.com for a consistent sender mail address
This commit is contained in:
1 parent
e4e3cbe7e7
commit
8a1f8f1d6c
1 file changed
+4
-4
+4
-4
@@ -166,7 +166,7 @@ load_from_release_file ()
|
||||
# and then on like above...
|
||||
fi
|
||||
if [ -n "${BUILD_COMPLETE_NOTIFY}" ]; then
|
||||
echo "Build/Deployment process has been started - it can take 5 to 20 minutes until your instance is ready. " | mail -s "Build or Deployment of $INSTANCE_ID to $SERVER_HOME for server $SERVER_NAME starting" ${BUILD_COMPLETE_NOTIFY}
|
||||
echo "Build/Deployment process has been started - it can take 5 to 20 minutes until your instance is ready. " | mail -r noreply@sapsailing.com -s "Build or Deployment of $INSTANCE_ID to $SERVER_HOME for server $SERVER_NAME starting" ${BUILD_COMPLETE_NOTIFY}
|
||||
fi
|
||||
RELEASE_FILE_NAME=${INSTALL_FROM_RELEASE}.tar.gz
|
||||
cd ${SERVER_HOME}
|
||||
@@ -227,7 +227,7 @@ build ()
|
||||
if [ $MEM_TOTAL -lt 924 ]; then
|
||||
echo "Could not start build process with less than 1GB of RAM!"
|
||||
if [ -n "${BUILD_COMPLETE_NOTIFY}" ]; then
|
||||
echo "Not enough RAM for completing the build process! You need at least 1GB. Instance NOT started!" | mail -s "Build of $INSTANCE_ID failed" ${BUILD_COMPLETE_NOTIFY}
|
||||
echo "Not enough RAM for completing the build process! You need at least 1GB. Instance NOT started!" | mail -r noreply@sapsailing.com -s "Build of $INSTANCE_ID failed" ${BUILD_COMPLETE_NOTIFY}
|
||||
fi
|
||||
else
|
||||
if [[ $BUILD_BEFORE_START == "True" ]]; then
|
||||
@@ -266,12 +266,12 @@ deploy ()
|
||||
if [ $STATUS -eq 0 ]; then
|
||||
echo "Deployment Successful"
|
||||
if [ -n "${BUILD_COMPLETE_NOTIFY}" ]; then
|
||||
echo "OK - check the attachment for more information." | mail $MAIL_ATTACH_OPTION $SERVER_HOME/last_automatic_build.txt -s "Build or Deployment of $INSTANCE_ID complete" ${BUILD_COMPLETE_NOTIFY}
|
||||
echo "OK - check the attachment for more information." | mail -r noreply@sapsailing.com $MAIL_ATTACH_OPTION $SERVER_HOME/last_automatic_build.txt -s "Build or Deployment of $INSTANCE_ID complete" ${BUILD_COMPLETE_NOTIFY}
|
||||
fi
|
||||
else
|
||||
echo "Deployment Failed"
|
||||
if [ -n "${BUILD_COMPLETE_NOTIFY}" ]; then
|
||||
echo "ERROR - check the attachment for more information." | mail $MAIL_ATTACH_OPTION $SERVER_HOME/last_automatic_build.txt -s "Build of $INSTANCE_ID failed" ${BUILD_COMPLETE_NOTIFY}
|
||||
echo "ERROR - check the attachment for more information." | mail -r noreply@sapsailing.com $MAIL_ATTACH_OPTION $SERVER_HOME/last_automatic_build.txt -s "Build of $INSTANCE_ID failed" ${BUILD_COMPLETE_NOTIFY}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user