summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/cass_init/prep.sh
blob: 5639ca43c522354d25d785bd3cd33b4fd4d570b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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