]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/planet-mirror-redirect-update.erb
Extracted all references to planet dump output locations to attributes
[chef.git] / cookbooks / planet / templates / default / planet-mirror-redirect-update.erb
similarity index 96%
rename from cookbooks/planet/files/default/bin/planet-mirror-redirect-update
rename to cookbooks/planet/templates/default/planet-mirror-redirect-update.erb
index 6d772ec2b6ebc068e1f31e7207314844b232c6fb..1f37ecd234cb994546c93b4442c216220a3b0125 100644 (file)
@@ -8,7 +8,7 @@
        Modifies .htaccess
 */
 $_YEAR = date('Y');
-$_PLANET_FOLDER = '/store/planet/planet/'.$_YEAR.'/';
+$_PLANET_FOLDER = '<%= node[:planet][:dump][:xml_directory] %>/'.$_YEAR.'/';
 $_PLANET_REGEX = "/^(planet|changesets)\-\d{6}(\-nolt)?\.osm\.(bz2|gz)$/";
 $_MIRROR = 'http://ftp.heanet.ie/mirrors/openstreetmap.org/planet/'.$_YEAR.'/';
 $_PLANET_HTACCESS = $_PLANET_FOLDER.'../../.htaccess';