Skip to content

Instantly share code, notes, and snippets.

@ftiff
Last active April 1, 2016 09:00
Show Gist options
  • Save ftiff/ec3fe36efff3f62a17fbbb4e29991edf to your computer and use it in GitHub Desktop.
Save ftiff/ec3fe36efff3f62a17fbbb4e29991edf to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<ProxySetting>
<Context InitContext="[WSCONTEXT]" />
<PACFile URL="[PACFILE]" />
<UPDATE URL="http://download.global.blackspider.com/epud/" />
</ProxySetting>
<?xml version="1.0" encoding="UTF-8"?>
<IPXYClientConfiguration SchemaVersion="16777216" SN="0" Name="Default Profile" UpdateDate="" RefId="">
<ProxySetting>
<PACFile URL=[PACFILE]"/>
</ProxySetting>
<ClientSetting EnableAntiTampering="1" AdminPasswordHash="11a3e229084349bc25d97e29393ced1d">
<UserInterface UISilentMode="0"/>
<Update Frequency="0">
<Download NewVersion="http://download.global.blackspider.com/epud/" SendPII="0"/>
</Update>
</ClientSetting>
</IPXYClientConfiguration>
#!/bin/bash
# test_command
# Found on http://stackoverflow.com/questions/5195607/checking-bash-exit-status-of-several-commands-efficiently
function test_command {
"$@"
local status=$?
echo "Executing '$@'… "
if [ $status -ne 0 ]; then
echo "ERROR ($status): $@" >&2
exit $status
fi
echo "OK"
}
BASEPATH="/Library/Deploy/EndpointInstaller"
test_command installer -target / -pkg $BASEPATH/WebsenseEndpoint.pkg &> $BASEPATH/websenseinstall.log
# Should have exited with $status before if something failed
#exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment