SHARE
TWEET

Untitled

a guest Apr 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if [ ! -f lock ]
  2. then
  3.   touch lock
  4.   osmupdate -v $(osmconvert update_last.osc.gz --out-timestamp) update.osc.gz \
  5.   && /usr/bin/osm2pgsql --number-processes=4 -a -C 64  -k -m -G -s -S osm2pgsql-choosen.style -d osm --flat-nodes /ssd-nvme/osm2pgsql/flat-nodes.raw --keep-coastlines --tag-transform-script config/activate-relation-type-waterway.lua --prefix=planet_osm update.osc.gz \
  6.   && mv update.osc.gz update_last.osc.gz \
  7.   && echo "timestamp=$(osmconvert update_last.osc.gz --out-timestamp)" > state.txt \
  8.   && touch -t $(osmconvert update_last.osc.gz --out-timestamp | sed 's/[^0-9]//g;s/\([0-9][0-9]\)$/.\1/') state.txt \
  9.   && rm lock
  10. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top