Currently we are using Octopus Deploy 2018.10.5 LTS version and we are planning to upgrade it to 2019.9.8 LTS.
Earlier we have moved the NuGetRepository to custom folder (using the below script). We would like to know whether upgrading the Octopus server will overwrite the Nuget repo path to default path (C:\Octopus\Packages)? and do we need to run the script again after upgrading it?
SCRIPT TO UPDATE THE NUGET REPO PATH:
$oldNuGetRepository = “C:\Octopus\Packages”
$newNuGetRepository = “G:\OctopusPackages\Packages "
$octopus = “C:\Program Files\Octopus Deploy\Octopus\Octopus.Server.exe”
& “$octopus” service --stop
mv $oldNuGetRepository $newNuGetRepository
& “$octopus” path --nugetRepository=”$newNuGetRepository"
& “$octopus” service --start