Skip to content

Commit

Permalink
Merge pull request #35 from OctopusDeployLabs/target-os
Browse files Browse the repository at this point in the history
Add some backward compatible code for IsWindows and IsLinux
  • Loading branch information
BobJWalker authored Mar 9, 2022
2 parents bf44f26 + 80d515c commit 6031fb0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CloneTentacleInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -391,17 +391,17 @@ function Get-TentacleDirectories

$tentacleDirectory = @{}

if ($IsWindows)
if ($IsLinux)
{
$tentacleDirectory.HomeDirectory = "C:\Octopus\$ClonedInstanceName"
$tentacleDirectory.AppDirectory = "C:\Octopus\$ClonedInstanceName\Applications"
$tentacleDirectory.ConfigFile = "C:\Octopus\$ClonedInstanceName\Tentacle\Tentacle.config"
$tentacleDirectory.HomeDirectory = "/etc/octopus/default/$ClonedInstanceName"
$tentacleDirectory.AppDirectory = "/home/Octopus/$ClonedInstanceName/Applications/"
$tentacleDirectory.ConfigFile = "/etc/octopus/default/$ClonedInstanceName/tentacle-default.config"
}
else
{
$tentacleDirectory.HomeDirectory = "/etc/octopus/default/$ClonedInstanceName"
$tentacleDirectory.AppDirectory = "/home/Octopus/$ClonedInstanceName/Applications/"
$tentacleDirectory.ConfigFile = "/etc/octopus/default/$ClonedInstanceName/tentacle-default.config"
$tentacleDirectory.HomeDirectory = "C:\Octopus\$ClonedInstanceName"
$tentacleDirectory.AppDirectory = "C:\Octopus\$ClonedInstanceName\Applications"
$tentacleDirectory.ConfigFile = "C:\Octopus\$ClonedInstanceName\Tentacle\Tentacle.config"
}

return $tentacleDirectory
Expand Down

0 comments on commit 6031fb0

Please sign in to comment.