Skip to content

Commit 45a9523

Browse files
committed
fix(script): add times to steps
1 parent dd257a8 commit 45a9523

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

scripts/cron_load.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ function check_osm_meta_data() {
8181
}
8282

8383

84-
# main: update data
84+
# main: update data
85+
NOW=$( date '+%F @ %H:%M:%S' )
86+
echo "tile reload is starting ($NOW)"
8587
rm -rf /tmp/*
8688

8789
cd $OMT_DIR
@@ -93,22 +95,29 @@ if [ $new == 1 ]; then
9395
echo "step A: blow away existing GL / OMT Docker and data"
9496
$DIR/nuke.sh ALL
9597

96-
echo "step B: load and create *.mbtiles in openmaptiles/data dir"
98+
NOW=$( date '+%F @ %H:%M:%S' )
99+
echo "step B: load and create *.mbtiles in openmaptiles/data dir ($NOW)"
97100
update_osm_data
98101

99102
cd $OMT_DIR
100103
./scripts/import.sh
101104

102-
echo "step C: restart and test GL with this new *.mbtiles file"
105+
NOW=$( date '+%F @ %H:%M:%S' )
106+
echo "step C: restart and test GL with this new *.mbtiles file ($NOW)"
103107
cd $OMT_DIR
104108
./scripts/mbtiles/copy.sh
105109
./scripts/mbtiles/restart.sh
106110

107-
echo "step D: deploy this *.mbtiles into the GREEN/BLUE system not in production"
111+
NOW=$( date '+%F @ %H:%M:%S' )
112+
echo "step D: deploy this *.mbtiles into the GREEN/BLUE system not in production ($NOW)"
108113
cd $OMT_DIR
109114
./scripts/bolt/deploy.sh
110115

111-
echo "step E: test... "
116+
NOW=$( date '+%F @ %H:%M:%S' )
117+
echo "step E: test... ($NOW)"
112118
cd $OMT_DIR
113119
./scripts/test_gl_images.sh
114120
fi
121+
122+
NOW=$( date '+%F @ %H:%M:%S' )
123+
echo "tile reload is DONE ($NOW)"

0 commit comments

Comments
 (0)