Skip to content

Commit

Permalink
Fixes bug where init script checks for existence of the wrong file on…
Browse files Browse the repository at this point in the history
… 10.4.
  • Loading branch information
Joshua Rogers committed Dec 1, 2017
1 parent 378a438 commit cff207a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cookbooks/arcgis-enterprise/providers/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,14 @@
if node['init_package'] == 'init'
arcgisserver_path = '/etc/init.d/arcgisserver'
service_file = 'arcgisserver.erb'
template_variables = ({ :agshome => agshome })

if node['arcgis']['version'].start_with? '10.4'
properties_file = 'arcgis-server-framework.properties'
else
properties_file = 'arcgis-framework.properties'
end

template_variables = ({ :agshome => agshome, :agsproperties => properties_file })
# Systemd
else node['init_package'] == 'systemd'
arcgisserver_path = '/etc/systemd/system/arcgisserver.service'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
### END INIT INFO

invoker=`id | cut -f 2 -d '(' | cut -f 1 -d ')'`
agsfilecheck=framework/etc/arcgis-framework.properties
agsfilecheck=framework/etc/<%=@agsproperties%>

rwd=`dirname $0`/../../..
if [ -L "$0" ]; then
Expand Down

0 comments on commit cff207a

Please sign in to comment.