summarylogtreecommitdiffstats
path: root/falcon-sensor.install
blob: 08b8631eceda383dbe84ee83ad6582b94df8cabd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pre_upgrade() {
  printf "$(tput setaf 5)You may need to uninstall the package first and remove the folder $(tput setaf 2)/opt/CrowdStrike$(tput sgr0)\n"
  printf "$(tput setaf 6)sudo $(tput setaf 2)systemctl stop falcon-sensor$(tput sgr0)\n"
  printf "$(tput setaf 6)sudo $(tput setaf 2)pacman --remove --nosave --recursive falcon-sensor$(tput sgr0)\n"
  printf "$(tput setaf 6)sudo $(tput setaf 2)rm -rf /opt/CrowdStrike$(tput sgr0)\n"
  printf "$(tput setaf 5)This is necessary because falcon-sensor creates some files after installation which are already contained in newer installation packages.$(tput sgr0)\n"
}

post_install() {
  printf "$(tput setaf 4)Add your customer id and provisioning token to falcon by issuing:$(tput sgr0)\n"
  printf "$(tput setaf 6)sudo $(tput setaf 2)/opt/CrowdStrike/falconctl -s -f --cid=<CID> --provisioning-token=<PROVISIONING_TOKEN>$(tput sgr0)\n"
  printf "$(tput setaf 4)Start and enable falcon-sensor through systemd:$(tput sgr0)\n"
  printf "$(tput setaf 6)sudo $(tput setaf 2)systemctl enable --now falcon-sensor$(tput sgr0)\n"
}

post_upgrade() {
  post_install
}