Removed chown $USER from clamav

This commit is contained in:
Brian Zalewski 2024-01-03 23:25:27 +00:00
parent 70993cb856
commit 9cc4ecf017

View file

@ -2353,7 +2353,7 @@ softwarePackages:
### Setting up launchd services on macOS ### Setting up launchd services on macOS
if [ -d /Applications ] && [ -d /System ]; then if [ -d /Applications ] && [ -d /System ]; then
sudo mkdir -p /var/log/clamav sudo mkdir -p /var/log/clamav
sudo chown $USER /var/log/clamav # sudo chown $USER /var/log/clamav
sudo cp -f "$HOME/.local/etc/clamav/clamdscan.plist.tmpl" /Library/LaunchDaemons/clamdscan.plist sudo cp -f "$HOME/.local/etc/clamav/clamdscan.plist.tmpl" /Library/LaunchDaemons/clamdscan.plist
sudo cp -f "$HOME/.local/etc/clamav/freshclam.plist.tmpl" /Library/LaunchDaemons/freshclam.plist sudo cp -f "$HOME/.local/etc/clamav/freshclam.plist.tmpl" /Library/LaunchDaemons/freshclam.plist
sudo launchctl load -w /Library/LaunchDaemons/clamdscan.plist sudo launchctl load -w /Library/LaunchDaemons/clamdscan.plist