Skip to content

Commit

Permalink
Cleaned up, updated installer to remove old versions of module
Browse files Browse the repository at this point in the history
  • Loading branch information
jc0b committed Feb 7, 2023
1 parent eba8730 commit ae6651f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion kandji_processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function run($plist)
$parser = new CFPropertyList();
$parser->parse($plist, CFPropertyList::FORMAT_XML);
$mylist = $parser->toArray();
echo "Parsed plist";
// Retrieve Kandji MR record (if existing)
try {
$model = Kandji_model::select()
Expand Down
6 changes: 5 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ else
ERR=1
fi


# delete old Kandji module things
rm -f "${CACHEPATH}kandji.txt"
rm -f "${MUNKIPATH}preflight.d/kandji"
rm -f "${MUNKIPATH}scripts/kandji"
rm -f "${MUNKIPATH}postflight.d/kandji"
2 changes: 1 addition & 1 deletion scripts/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Remove kandji script
rm -f "${MUNKIPATH}preflight.d/kandji.py"

# Remove kandji.txt file
# Remove kandji.plist file
rm -f "${CACHEPATH}kandji.plist"

0 comments on commit ae6651f

Please sign in to comment.