-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing of errors with library.sh and initial setup tier beacon
- Loading branch information
Showing
8 changed files
with
70 additions
and
200 deletions.
There are no files selected for viewing
136 changes: 0 additions & 136 deletions
136
grouper-midpoint/mp-gr/configs-and-secrets/shibboleth/shibboleth2.xml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
grouper-midpoint/mp-gr/configs-and-secrets/shibboleth/sp-cert.pem
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
grouper-midpoint/mp-gr/configs-and-secrets/shibboleth/sp-key.pem
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
grouper-midpoint/mp-gr/midpoint-server/container_files/usr-local-bin/sendtierbeacon.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/bin/bash | ||
|
|
||
| LOGHOST="localhost" | ||
| LOGPORT="80" | ||
|
|
||
| messagefile="/tmp/beaconmsg" | ||
|
|
||
| if [ -z "$TIER_BEACON_OPT_OUT" ]; then | ||
| cat > $messagefile <<EOF | ||
| { | ||
| "msgType" : "TIERBEACON", | ||
| "msgName" : "TIER", | ||
| "msgVersion" : "1.0", | ||
| "tbProduct" : "MIDPOINT", | ||
| "tbProductVersion" : "$MP_VERSION", | ||
| "tbTIERRelease" : "$TIER_RELEASE", | ||
| "tbMaintainer" : "$TIER_MAINTAINER" | ||
| } | ||
| EOF | ||
|
|
||
| curl -s -XPOST "${LOGHOST}:${LOGPORT}/" -H 'Content-Type: application/json' -T $messagefile 1>/dev/null 2>&1 | ||
| if [ $? -eq 0 ]; then | ||
| echo "tier_beacon;none;$ENV;$USERTOKEN;"`date`"; TIER beacon sent" | ||
| else | ||
| echo "tier_beacon;none;$ENV;$USERTOKEN;"`date`"; Failed to send TIER beacon" | ||
| fi | ||
|
|
||
| rm -f $messagefile 1>/dev/null 2>&1 | ||
|
|
||
| fi |
9 changes: 9 additions & 0 deletions
9
grouper-midpoint/mp-gr/midpoint-server/container_files/usr-local-bin/setupcron.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
|
|
||
| CRONTMPFILE=/tmp/cronfile | ||
|
|
||
| echo "#send daily \"beacon\" to central" > ${CRONTMPFILE} | ||
| #echo $(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONTMPFILE} | ||
| echo 47 "* * * * /usr/local/bin/sendtierbeacon.sh >> /dev/fd/8 2>&1" >> ${CRONTMPFILE} | ||
| chmod 644 ${CRONTMPFILE} | ||
| crontab ${CRONTMPFILE} |