fleet/orbit/tools/cleanup/cleanup_linux.sh
Michal Nicpon 15c69058bb
fix SELinux issue (#5335)
Install orbit to /opt instead of /var/lib. When installing to /var/lib,
the default selinux context of var_lib_t gets applied, which results in
an AVC error when running via systemd.

Co-authored-by: Lucas Rodriguez <lucas@fleetdm.com>
2022-05-02 12:18:59 -06:00

7 lines
235 B
Bash

#!/usr/bin/env bash
sudo systemctl stop orbit.service
sudo systemctl disable orbit.service
sudo rm -rf /var/lib/orbit /opt/orbit /var/log/orbit /usr/local/bin/orbit /etc/default/orbit /usr/lib/systemd/system/orbit.service /opt/orbit