Skip to content

Commit 129d83f

Browse files
author
Joshua Rogers
committed
Fixes bug where init script checks for existence of the wrong file on 10.4.
1 parent 8c7ec68 commit 129d83f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

cookbooks/arcgis-enterprise/providers/server.rb

+8-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,14 @@
665665
if node['init_package'] == 'init'
666666
arcgisserver_path = '/etc/init.d/arcgisserver'
667667
service_file = 'arcgisserver.erb'
668-
template_variables = ({ :agshome => agshome })
668+
669+
if node['arcgis']['version'].start_with? '10.4'
670+
properties_file = 'arcgis-server-framework.properties'
671+
else
672+
properties_file = 'arcgis-framework.properties'
673+
end
674+
675+
template_variables = ({ :agshome => agshome, :agsproperties => properties_file })
669676
# Systemd
670677
else node['init_package'] == 'systemd'
671678
arcgisserver_path = '/etc/systemd/system/arcgisserver.service'

cookbooks/arcgis-enterprise/templates/default/arcgisserver.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
### END INIT INFO
1111

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

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

0 commit comments

Comments
 (0)