@@ -259,16 +259,16 @@ function setupPollingTentacle {
259259 echo -e " sudo /opt/octopus/tentacle/Tentacle new-certificate --instance \" $instancename \" --if-blank"
260260 echo -e " sudo /opt/octopus/tentacle/Tentacle configure --instance \" $instancename \" --app \" $applicationpath \" --noListen \" True\" --reset-trust"
261261
262+ if [ -n " $proxyarg " ]; then
263+ echo -e " sudo /opt/octopus/tentacle/Tentacle polling-proxy --instance \" $instancename \" --proxyEnable=\" true\" $proxyargdisplay "
264+ fi
265+
262266 if [ $machinetype = 2 ] || [ $machinetype = " worker" ]; then
263267 echo -e " sudo /opt/octopus/tentacle/Tentacle register-worker --instance \" $instancename \" --server \" $octopusserverurl \" --name \" $displayname \" --comms-style \" TentacleActive\" $commsAddressOrPortArgs $displayauth --space \" $space \" $workerpoolsstring "
264268 else
265269 echo -e " sudo /opt/octopus/tentacle/Tentacle register-with --instance \" $instancename \" --server \" $octopusserverurl \" --name \" $displayname \" --comms-style \" TentacleActive\" $commsAddressOrPortArgs $displayauth --space \" $space \" $envstring $rolesstring "
266270 fi
267271
268- if [ -n " $proxyarg " ]; then
269- echo -e " sudo /opt/octopus/tentacle/Tentacle polling-proxy --instance \" $instancename \" --proxyEnable=\" true\" $proxyargdisplay "
270- fi
271-
272272 echo -e " sudo /opt/octopus/tentacle/Tentacle service --install --start --instance \" $instancename \" ${NC} "
273273
274274 read -p " Press enter to continue..."
@@ -282,18 +282,18 @@ function setupPollingTentacle {
282282 eval sudo /opt/octopus/tentacle/Tentacle configure --instance \" $instancename \" --app \" $applicationpath \" --noListen \" True\" --reset-trust
283283 exitIfCommandFailed
284284
285+ if [ -n " $proxyarg " ]; then
286+ eval sudo /opt/octopus/tentacle/Tentacle polling-proxy --instance \" $instancename \" --proxyEnable=\" true\" $proxyarg
287+ exitIfCommandFailed
288+ fi
289+
285290 if [ $machinetype = 2 ] || [ $machinetype = " worker" ]; then
286291 eval sudo /opt/octopus/tentacle/Tentacle register-worker --instance \" $instancename \" --server \" $octopusserverurl \" --name \" $displayname \" --comms-style \" TentacleActive\" $commsAddressOrPortArgs $auth --space \" $space \" $workerpoolsstring
287292 else
288293 eval sudo /opt/octopus/tentacle/Tentacle register-with --instance \" $instancename \" --server \" $octopusserverurl \" --name \" $displayname \" --comms-style \" TentacleActive\" $commsAddressOrPortArgs $auth --space \" $space \" $envstring $rolesstring
289294 fi
290295 exitIfCommandFailed
291296
292- if [ -n " $proxyarg " ]; then
293- eval sudo /opt/octopus/tentacle/Tentacle polling-proxy --instance \" $instancename \" --proxyEnable=\" true\" $proxyarg
294- exitIfCommandFailed
295- fi
296-
297297 eval sudo /opt/octopus/tentacle/Tentacle service --install --start --instance \" $instancename \"
298298 exitIfCommandFailed
299299
0 commit comments