4be09bcb6618e2b2354a492a394fc54170b22bf7
configuration/on-site-scripts/paris2024/sap-p1-2/notifyAboutOSG2024TEV2023Updates
| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | +#!/bin/sh |
|
| 2 | +YESFILE="/tmp/osg2024tev2023results.json" |
|
| 3 | +YESFILE_OLD="${YESFILE}.old" |
|
| 4 | +MAILINGLIST="/home/sailing/mailinglists/osg2024tev2023updatemailinglist" |
|
| 5 | +URL="http://10.1.33.40/info/api/public/links/event/1be7a4cb-4537-44d6-88b3-646b308c2dbf?accesstoken=bDAv8CwsTM94ujZ&mediaType=json" |
|
| 6 | +dosendmail=false |
|
| 7 | +wget -O "$YESFILE" "$URL" |
|
| 8 | +if [ -f "$YESFILE_OLD" ]; then |
|
| 9 | + # results previously downloaded; now compare |
|
| 10 | + YESFILE_FORMATTED="${YESFILE}.formatted" |
|
| 11 | + YESFILE_OLD_FORMATTED="${YESFILE_OLD}.formatted" |
|
| 12 | + cat "$YESFILE" | python3 -mjson.tool >"$YESFILE_FORMATTED" |
|
| 13 | + cat "$YESFILE_OLD" | python3 -mjson.tool >"$YESFILE_OLD_FORMATTED" |
|
| 14 | + diff -q "$YESFILE_OLD_FORMATTED" "$YESFILE_FORMATTED" |
|
| 15 | + if [ "$?" != "0" ]; then |
|
| 16 | + echo "Found diff between $YESFILE_OLD and $YESFILE |
|
| 17 | + |
|
| 18 | +`diff -q "$YESFILE_OLD_FORMATTED" "$YESFILE_FORMATTED"` |
|
| 19 | + |
|
| 20 | +Sending mail." |
|
| 21 | + dosendmail=true |
|
| 22 | + fi |
|
| 23 | +fi |
|
| 24 | +if [ "$dosendmail" = "true" ]; then |
|
| 25 | + echo "`date` Sending mail to `cat "$MAILINGLIST"`" |
|
| 26 | + echo "$YESFILE has changed. Consider re-importing results for Olympic Test Event Marseille 2023. Differences: |
|
| 27 | + |
|
| 28 | +------------------ |
|
| 29 | +`diff -U 10 "$YESFILE_OLD_FORMATTED" "$YESFILE_FORMATTED"` |
|
| 30 | +------------------ |
|
| 31 | + |
|
| 32 | +To unsubscribe, change $MAILINGLIST on `hostname`." | mail -s "$YESFILE was updated" `cat "$MAILINGLIST" | grep -v "^#"` |
|
| 33 | +fi |
|
| 34 | +mv "$YESFILE" "$YESFILE_OLD" |
|
| 35 | + |
java/com.sap.sse.mail/META-INF/javamail.default.address.map
wiki/info/landscape/paris2024/olympic-setup.md
| ... | ... | @@ -10,7 +10,9 @@ For the Olympic Summer Games 2024 Paris/Marseille we use a dedicated hardware se |
| 10 | 10 | |
| 11 | 11 | The two laptops run Mint Linux with a fairly modern 5.4 kernel. We keep both up to date with regular ``apt-get update && apt-get upgrade`` executions. Both have an up-to-date SAP JVM 8 (see [https://tools.hana.ondemand.com/#cloud](https://tools.hana.ondemand.com/#cloud)) installed under /opt/sapjvm_8. This is the runtime VM used to run the Java application server process. |
| 12 | 12 | |
| 13 | -Furthermore, both laptops have a MongoDB 4.4 installation configured through ``/etc/apt/sources.list.d/mongodb-org-4.4.list`` containing the line ``deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/4.4 main``. Their respective configuration can be found under ``/etc/mongod.conf``. The WiredTiger storage engine cache size should be limited. Currently, the following entry in ``/etc/mongod.conf`` does this. |
|
| 13 | +Furthermore, both laptops have a MongoDB 4.4 installation configured through ``/etc/apt/sources.list.d/mongodb-org-4.4.list`` containing the line ``deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/4.4 main``. Their respective configuration can be found under ``/etc/mongod.conf``. The WiredTiger storage engine cache size should be limited. Currently, the following entry in ``/etc/mongod.conf`` does this. Installing an older version of ``libssl`` may be required on newer Ubuntu versions (starting with 22.04) to be able to install MongoDB 4.4. |
|
| 14 | + |
|
| 15 | +An installation of Python (e.g., ``python3``) will be required for the Manage2Sail update notification script (see ``configuration/on-site-scripts/paris2024/sap-p1-2/notifyAboutOSG2024TEV2023Updates``). |
|
| 14 | 16 | |
| 15 | 17 | RabbitMQ is part of the distribution natively. It runs on both laptops. Both, RabbitMQ and MongoDB are installed as systemd service units and are launched during the boot sequence. The latest GWT version (currently our own fork, 2.11.0) is installed from [https://static.sapsailing.com/wt-2.11.0.zip](https://static.sapsailing.com/wt-2.11.0.zip) under ``/opt/gwt-2.11.0`` in case any development work would need to be done on these machines. |
| 16 | 18 |