microsoft / mdatp-xplat

Microsoft Defender for macOS/Linux - config samples, auxiliary tools
MIT License
187 stars 188 forks source link

Configure correct repo name for insiders slow #102

Closed ayush-m closed 1 year ago

ayush-m commented 1 year ago

Current issue The script mde_installer.sh requires channel as a parameter. Channel values can be either of: insiders-fast, insiders-slow, prod. While configuring the repository based on this, assumption was that repo name for fedora and sles is packages-microsoft-com-$CHANNEL. This assumption holds true for prod and insiders-fast channel. But in case of insiders-slow, the repo name is packages-microsoft-com-slow-prod. So when trying to install mdatp via mde_installer.sh script for insiders-slow repo, it gives error.

Solution The script now checks if channel is insiders-slow. If it is, then instead of configuring repo name as packages-microsoft-com-$CHANNEL, we configure repo name to packages-microsoft-com-slow-prod