Skip to content

Commit

Permalink
Fix postflight runs
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed May 30, 2018
1 parent 6f1e069 commit a8882c0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ pack-report-broken-client: pack-sal-scripts clean-build
pack-sal-scripts: l_usr_local
@sudo ${CP} -R payload/ ${WORK_D}
@sudo chown -R root:wheel ${WORK_D}
@sudo chmod -R 755 ${WORK_D}
@sudo chmod -R 755 ${WORK_D}

install: pkg
@sudo installer -pkg sal_scripts.pkg -target /
4 changes: 3 additions & 1 deletion com.salopensource.sal.random.runner.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<string>com.salopensource.sal.random.runner</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sal/bin/randomizer</string>
<string>--path</string>
<string>/usr/local/sal/bin/sal-submit</string>
<string>--random</string>
<string>--delay</string>
<string>1500</string>
</array>
<key>RunAtLoad</key>
Expand Down
3 changes: 3 additions & 0 deletions payload/usr/local/sal/bin/randomizer
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import subprocess
import optparse
import os
import time
import random
import stat

def get_options():
"""Return commandline options."""
Expand Down
2 changes: 1 addition & 1 deletion payload/usr/local/sal/bin/sal-submit
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import yaml


BUNDLE_ID = 'com.github.salopensource.sal'
VERSION = '2.1.0'
VERSION = '2.1.1'

# To resolve unicode write errors set our default encoding to utf8
reload(sys)
Expand Down
Binary file not shown.

0 comments on commit a8882c0

Please sign in to comment.