Open vnges opened 3 months ago
This is similar to issue on linux. The fix was to add: -Or $IsMacOS to line 36 in the Set-GlpiToolsConfig.ps1 file. ` begin {
-Or $IsMacOS
if ($IsLinux -Or $IsMacOS) { $ConfigFile = "Configuration.json" $ConfigPath = "$env:HOME/.config/GlpiToolsConfig\" $Config = Join-Path -Path $ConfigPath -ChildPath $ConfigFile } else {`
otherwise, it errors out with "read-only file system"
https://github.com/wpietrzakpl/GlpiTools/blob/aea0468f6bf6bb5571969cbfa89373ae6834d871/Public/APICore/Configuration/Set-GlpiToolsConfig.ps1#L36
This is similar to issue on linux. The fix was to add:
-Or $IsMacOS
to line 36 in the Set-GlpiToolsConfig.ps1 file. ` begin {otherwise, it errors out with "read-only file system"
https://github.com/wpietrzakpl/GlpiTools/blob/aea0468f6bf6bb5571969cbfa89373ae6834d871/Public/APICore/Configuration/Set-GlpiToolsConfig.ps1#L36