summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/cass_init/prep.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-08 11:27:18 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-08 11:28:00 -0500
commit94053613671f7456ea5114a8421d0e6868bdbba0 (patch)
treef81e1585e9b9e76dd74a0c8381926ed7b1c6e8be /auth/auth-cass/cass_init/prep.sh
parent49525303bc07064d60b3dde3056b2e9e8a379435 (diff)
Artifacts to Bootstrap
Issue-ID: AAF-543 Change-Id: I95d11b11c21ddeb63e393528c2504af673d27a6f Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-cass/cass_init/prep.sh')
-rw-r--r--auth/auth-cass/cass_init/prep.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/auth/auth-cass/cass_init/prep.sh b/auth/auth-cass/cass_init/prep.sh
new file mode 100644
index 00000000..5639ca43
--- /dev/null
+++ b/auth/auth-cass/cass_init/prep.sh
@@ -0,0 +1,17 @@
+#/bin/bash
+
+cd dats
+export DATE=$(date "+%Y-%m-%d %H:%M:%S.000+0000" -d "+6 months")
+
+TEMP=$(mktemp)
+
+mv user_role.dat $TEMP
+cat $TEMP | awk -F '|' '{print $1"|"$2"|"ENVIRON["DATE"]"|"$4"|"$5}' > user_role.dat
+
+mv cred.dat $TEMP
+cat $TEMP | awk -F '|' '{print $1"|"$2"|"ENVIRON["DATE"]"|"$4"|"$5"|"$6"|"$7"|"$8}' > cred.dat
+
+rm $TEMP
+
+cd - > /dev/null
+