diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-04-30 10:19:21 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-04-30 10:52:03 -0500 |
commit | f64f482462b697e06a47ad55aa5447dc829ce727 (patch) | |
tree | c7f107b2791a91347cf8a91a61ebfdc95fcc6cdf /auth/sample/bin/service.sh | |
parent | 2e76b4d7522a1fb2bf571eb8abcbcff4e97e06fc (diff) |
Clean LOCAL Dir based on VERSION
Issue-ID: AAF-821
Change-Id: I5fde81467d46130d3a39de415604c7702fecbaa8
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/sample/bin/service.sh')
-rw-r--r-- | auth/sample/bin/service.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/auth/sample/bin/service.sh b/auth/sample/bin/service.sh index 1a289d35..a4d2aba1 100644 --- a/auth/sample/bin/service.sh +++ b/auth/sample/bin/service.sh @@ -105,7 +105,13 @@ if [ ! -e $FILE ]; then fi fi -# echo "Check keyfile" +# Should we clean up? +if [ "${VERSION}" != "$(cat ${LOCAL}/VERSION)" ]; then + echo "Clean up directory ${LOCAL}" + rm -Rf ${LOCAL}/* +fi +echo "${VERSION}" > $LOCAL/VERSION + FILE="$LOCAL/org.osaaf.aaf.p12" if [ ! -e $FILE ]; then if [ -e $CONFIG/cert/org.osaaf.aaf.p12 ]; then @@ -157,6 +163,8 @@ if [ ! -e $LOCAL/org.osaaf.aaf.props ]; then $JAVA_AGENT config \ aaf@aaf.osaaf.org \ cadi_etc_dir=$LOCAL \ + cadi_latitude=${cadi_latitude} \ + cadi_longitude=${cadi_longitude} \ cadi_prop_files=$CONFIG/local/initialConfig.props:$CONFIG/local/aaf.props:${TMP} rm ${TMP} |