I want to update the appsettings.json file across multiple PSU servers (Windows, Docker containers, etc), to set the GitSyncTimeout setting to a custom value - Git | PowerShell Universal
Is it correct that neither Set-PSUSetting or Set-PSUGitSetting can do this? We do not have system / volume level access to the containers, so the action must be done from inside PSU / using the PSU cmdlets.
It looks that way. I don’t see anything about the Git timeout value in any of the APIs on the Swagger page. Maybe it’s something @adam can implement in a future release.
If your only real requirement is performing the task within PSU, would you possibly be able to use the instructions found here to modify the appsettings.json file using PowerShell and PSUs own access to the file system?
Obviously this assumes there is a current setting in the custom appsettings.json file to modify. If all you have is the default value in the default (not custom) appsettings.json file, this solution would not work.
I ended up doing something similar, on most of our servers - but i could still see a use case for it in general.
I will open a feature request for it - thanks for confirming.