X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fsample%2Fbin%2Fservice.sh;h=a4d2aba14e1057910432bc7b65828544c8551502;hb=f64f482462b697e06a47ad55aa5447dc829ce727;hp=1a289d35d350ca864e11215556bea2650e6ff763;hpb=2e76b4d7522a1fb2bf571eb8abcbcff4e97e06fc;p=aaf%2Fauthz.git 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}