From 4d8ff3e971fdefe89b14bae93efe2c5ae63722f3 Mon Sep 17 00:00:00 2001 From: Robin Bourianes Date: Thu, 15 Apr 2021 14:35:21 +0200 Subject: [PATCH] chore: removed commented helper [skip build][skip doc] --- scripts/mapcache.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/scripts/mapcache.sh b/scripts/mapcache.sh index f0923ac43..bf34b7401 100644 --- a/scripts/mapcache.sh +++ b/scripts/mapcache.sh @@ -65,23 +65,3 @@ seed_mapcache_tiles() { ${K_MAPCACHE_DOCKER_RUN} ${MAPCACHE_SEED} -d ${AREA} fi } - -# rsync_mapcache_local_cache() { -# local LAYER=${1:-} - -# local CACHE_PATH=$MAPCACHE_DATA_PATH -# if [ -n "$LAYER" ] && [ $LAYER != "all" ]; then -# CACHE_PATH=$MAPCACHE_DATA_PATH/$LAYER -# fi - -# if ! directory_exists $CACHE_PATH; then -# log_error the cache directory \"${CACHE_PATH}\" doesn\'t exist -# return 1 -# fi - -# local THIS_NODE=$(this_swarm_node) -# local OTHER_NODES=$(other_swarm_nodes) -# for NODE in ${OTHER_NODES}; do -# echo "k-node-exec -c $NODE \"cd $CACHE_PATH && sudo rm -fR * && sudo rsync -e \"ssh -o StrictHostKeyChecking=accept-new -i $HOME/.ssh/ssh.pem\" -a --no-i-r --info=progress2 $THIS_NODE:$MAPCACHE_DATA_PATH/ . && sudo chown -R www-data:www-data *\"" -# done -# }