File tree 4 files changed +6
-4
lines changed 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ PAYLOAD=\
12
12
pack-script-postinstall
13
13
14
14
clean-build :
15
- rm -rf report_broken_client/build
15
+ @sudo rm -rf report_broken_client/build
16
16
17
17
pack-report-broken-client : pack-sal-scripts clean-build
18
18
xcodebuild -project report_broken_client/report_broken_client.xcodeproj -configuration Release
19
19
@sudo ${CP} report_broken_client/build/Release/report_broken_client ${WORK_D} /usr/local/munki/report_broken_client
20
20
21
21
pack-sal-scripts : l_usr_local
22
+ @sudo find . -name ' *.pyc' -delete
22
23
@sudo ${CP} -R payload/ ${WORK_D}
23
24
@sudo chown -R root:wheel ${WORK_D}
24
25
@sudo chmod -R 755 ${WORK_D}
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def exit_if_not_root():
99
99
if uid != 0 :
100
100
sys .exit ("Manually running this script requires sudo." )
101
101
102
-
102
+
103
103
def get_run_type (submission ):
104
104
munki = submission .get ('Munki' , {})
105
105
munki_extras = munki .get ('extra_data' , {})
@@ -187,6 +187,7 @@ def remove_skipped_facts():
187
187
188
188
def send_checkin (server_url ):
189
189
checkinurl = os .path .join (server_url , 'checkin' , '' )
190
+ logging .debug ("Sending report to {}" .format (checkinurl ))
190
191
logging .debug ("Checkin Response:" )
191
192
out , error = utils .send_report (checkinurl , json_path = utils .RESULTS_PATH )
192
193
log (out , error )
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def get_sus_facts():
110
110
111
111
for line in reversed (install_log ):
112
112
# TODO: Stop if we go before the subprocess call datetime-wise
113
- if 'Catalog:' in line and 'catalog' not in result :
113
+ if 'Catalog: http ' in line and 'catalog' not in result :
114
114
result ['catalog' ] = line .split ()[- 1 ]
115
115
elif 'SUScan: Elapsed scan time = ' in line and 'last_check' not in result :
116
116
# Example date 2019-02-08 10:49:56-05
Original file line number Diff line number Diff line change 22
22
23
23
BUNDLE_ID = 'com.github.salopensource.sal'
24
24
RESULTS_PATH = '/usr/local/sal/checkin_results.json'
25
- VERSION = '3.0.0 '
25
+ VERSION = '3.0.1 '
26
26
27
27
28
28
def sal_version ():
You can’t perform that action at this time.
0 commit comments