diff options
Diffstat (limited to 'auth/auth-cass/cass_init/prep.sh')
-rw-r--r-- | auth/auth-cass/cass_init/prep.sh | 17 |
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 + |