-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #662 from Johaney-s/oidc_with_groups
feat(oidc_with_groups): added slave script and renamed
- Loading branch information
Showing
9 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
SERVICE_NAME="oidc_with_groups_einfra" | ||
|
||
. generic_send |
28 changes: 28 additions & 0 deletions
28
slave/process-oidc-with-groups-einfra/bin/process-oidc_with_groups_einfra.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,28 @@ | ||
#!/bin/bash | ||
PROTOCOL_VERSION='3.0.0' | ||
|
||
function process { | ||
|
||
### Status codes | ||
I_CHANGED=(0 "${DST_FILE} updated") | ||
I_NOT_CHANGED=(0 "${DST_FILE} has not changed") | ||
|
||
E_MISSING_DST=(50 'Missing destination of file (DST_FILE), need to be set in pre_script.') | ||
|
||
FROM_PERUN="${WORK_DIR}/oidc_with_groups_einfra" | ||
|
||
if [ -z ${DST_FILE} ]; then | ||
log_msg E_MISSING_DST | ||
fi | ||
|
||
create_lock | ||
|
||
# Create diff between old.perun and .new | ||
diff_mv_sync "${FROM_PERUN}" "${DST_FILE}" | ||
|
||
if [ $? -eq 0 ]; then | ||
log_msg I_CHANGED | ||
else | ||
log_msg I_NOT_CHANGED | ||
fi | ||
} |
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,5 @@ | ||
perun-slave-process-oidc-with-groups-einfra (3.0.0) stable; urgency=low | ||
|
||
* New slave script for oidc-with-groups-einfra | ||
|
||
-- Johana Supikova <[email protected]> Mon, 07 Feb 2022 13:00:00 +0100 |
3 changes: 3 additions & 0 deletions
3
slave/process-oidc-with-groups-einfra/conf/example-pre_01_set_target_dir
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,3 @@ | ||
#!/bin/sh | ||
#SET destination file | ||
#DST_FILE=/tmp/oidc_with_groups_einfra |
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 @@ | ||
perun-slave-base |
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 @@ | ||
perun-slave-base |
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 @@ | ||
Package for perun service - oidc_with_groups_einfra |