On  0, Alan Malta Rodrigues <notifications@github.com> wrote:
> >  
> >  cd $STATEDIR
> > +host=`hostname`
> > +
> > +# download metadata and stage it for update
> > +# change is applied on next updatedata() call
> > +fetch_metadata(){
> > +  set -e
> > +  # clean-up STEGEDIR area
> > +  rm -f $STAGEDIR/*.js $STAGEDIR/*-schema-stamp
> 
> This is the last thing we wanna do in this function. Since we only delete and copy over new files when they have passed the maps validation.

so you want this flow:
- $DAS_ROOT/bin/das_js_fetch $DASMAPS_URL $DASMAPS_DIR
- $DAS_ROOT/bin/das_js_validate $DASMAPS_DIR
- rm -f $STAGEDIR/*.js $STAGEDIR/*-schema-stamp
- cp -r $DASMAPS_DIR/* $STAGEDIR

right?

> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/dmwm/deployment/pull/118/files#r10797551