Last active
April 1, 2016 09:00
-
-
Save ftiff/ec3fe36efff3f62a17fbbb4e29991edf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ProxySetting> | |
<Context InitContext="[WSCONTEXT]" /> | |
<PACFile URL="[PACFILE]" /> | |
<UPDATE URL="http://download.global.blackspider.com/epud/" /> | |
</ProxySetting> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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