user "nominatim"
group "nominatim"
mode 0o755
- variables :logfile => "#{node[:nominatim][:logdir]}/update.log",
+ variables :bindir => source_directory,
+ :logfile => "#{node[:nominatim][:logdir]}/update.log",
:branch => node[:nominatim][:revision],
:update_stop_file => "#{home_directory}/status/updates_disabled"
end
user "nominatim"
group "nominatim"
mode 0o755
- variables :logfile => "#{node[:nominatim][:logdir]}/update.log",
+ variables :bindir => build_directory,
+ :logfile => "#{node[:nominatim][:logdir]}/update.log",
:branch => node[:nominatim][:revision],
:update_stop_file => "#{basedir}/status/updates_disabled"
end
# DO NOT EDIT - This file is being maintained by Chef
# Change to Nominatim directory
-DIR="$( cd "$( dirname "$0" )" && pwd )"
-cd $DIR/..
+cd <%= @bindir %>
while [ ! -f "<%= @update_stop_file %>" ]
do