#!/bin/sh
PreinstallConfig="/tmp/LansweeperITAgent-Preinstall.cfg" # Don't change this path!
[ -f $PreinstallConfig ] && chmod 744 $PreinstallConfig
cat > $PreinstallConfig << EOF
mode=unattended
accepteula=1
path=/Library/Application Support/Lansweeper IT Agent Discovery
cloudtoken=cloudtokenvalue
ForceMajorUpdates=1
AutoUpdateChannel=partners
#proxyserver=myproxyserver.domain.local 
#proxyport=8080
EOF
chmod 744 $PreinstallConfig