Skip to content

Commit

Permalink
Merge pull request #662 from Johaney-s/oidc_with_groups
Browse files Browse the repository at this point in the history
feat(oidc_with_groups): added slave script and renamed
  • Loading branch information
HejdaJakub authored Feb 10, 2022
2 parents df50334 + a793dba commit d8798ac
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 4 deletions.
File renamed without changes.
4 changes: 0 additions & 4 deletions send/oidc_with_groups

This file was deleted.

4 changes: 4 additions & 0 deletions send/oidc_with_groups_einfra
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
SERVICE_NAME="oidc_with_groups_einfra"

. generic_send
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
}
5 changes: 5 additions & 0 deletions slave/process-oidc-with-groups-einfra/changelog
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
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
1 change: 1 addition & 0 deletions slave/process-oidc-with-groups-einfra/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
perun-slave-base
1 change: 1 addition & 0 deletions slave/process-oidc-with-groups-einfra/rpm.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
perun-slave-base
1 change: 1 addition & 0 deletions slave/process-oidc-with-groups-einfra/short_desc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package for perun service - oidc_with_groups_einfra

0 comments on commit d8798ac

Please sign in to comment.