mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
bug6020: fixed imageupgrade scripts that were missing the user data check
This commit is contained in:
1 parent
b304bc2fbb
commit
fcb9f51f7a
3 files changed
+33
-20
No files matched your search
+10
-6
@@ -16,9 +16,13 @@ clean_mongo_pid() {
|
||||
}
|
||||
|
||||
LOGON_USER_HOME=/home/ec2-user
|
||||
|
||||
run_yum_update
|
||||
build_crontab_and_setup_files central_mongo_setup
|
||||
clean_startup_logs
|
||||
clean_mongo_pid
|
||||
finalize
|
||||
METADATA=$( get_ec2_user_data )
|
||||
echo "Metadata: ${METADATA}"
|
||||
if echo "${METADATA}" | grep -q "^image-upgrade$"; then
|
||||
echo "Image upgrade..."
|
||||
run_yum_update
|
||||
build_crontab_and_setup_files central_mongo_setup
|
||||
clean_startup_logs
|
||||
clean_mongo_pid
|
||||
finalize
|
||||
fi
|
||||
+10
-6
@@ -16,9 +16,13 @@ clean_mongo_pid() {
|
||||
}
|
||||
|
||||
LOGON_USER_HOME=/home/ec2-user
|
||||
|
||||
run_yum_update
|
||||
build_crontab_and_setup_files mongo_instance_setup
|
||||
clean_startup_logs
|
||||
clean_mongo_pid
|
||||
finalize
|
||||
METADATA=$( get_ec2_user_data )
|
||||
echo "Metadata: ${METADATA}"
|
||||
if echo "${METADATA}" | grep -q "^image-upgrade$"; then
|
||||
echo "Image upgrade..."
|
||||
run_yum_update
|
||||
build_crontab_and_setup_files mongo_instance_setup
|
||||
clean_startup_logs
|
||||
clean_mongo_pid
|
||||
finalize
|
||||
fi
|
||||
@@ -5,11 +5,16 @@
|
||||
|
||||
. `dirname $0`/imageupgrade_functions.sh
|
||||
|
||||
run_yum_update
|
||||
download_and_install_latest_sap_jvm_8
|
||||
clean_logrotate_target
|
||||
clean_httpd_logs
|
||||
clean_servers_dir
|
||||
clean_startup_logs
|
||||
build_crontab_and_setup_files sailing_server
|
||||
finalize
|
||||
METADATA=$( get_ec2_user_data )
|
||||
echo "Metadata: ${METADATA}"
|
||||
if echo "${METADATA}" | grep -q "^image-upgrade$"; then
|
||||
echo "Image upgrade..."
|
||||
run_yum_update
|
||||
download_and_install_latest_sap_jvm_8
|
||||
clean_logrotate_target
|
||||
clean_httpd_logs
|
||||
clean_servers_dir
|
||||
clean_startup_logs
|
||||
build_crontab_and_setup_files sailing_server
|
||||
finalize
|
||||
fi
|
||||
Reference in new issue
Block a user