fleet/pkg/file/scripts
Roberto Dip d383876a3c
fix issues installing software in windows (#19048)
for #19039 and #19041 this:

- fixes the install/remove scripts to read the env variable the proper
way
- truncates output before storing in the databse in case its longer than
MySQL's TEXT size

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-05-15 19:39:42 -03:00
..
install_deb.sh installer report and rollback fixes (#19046) 2024-05-15 19:18:35 -03:00
install_exe.ps1 fix issues installing software in windows (#19048) 2024-05-15 19:39:42 -03:00
install_msi.ps1 fix issues installing software in windows (#19048) 2024-05-15 19:39:42 -03:00
install_pkg.sh missing validations and tweaks to default scripts (#18780) 2024-05-07 13:02:08 -03:00
README.md adjust logic to get default scripts (#18719) 2024-05-06 11:41:31 -03:00
remove_deb.sh missing validations and tweaks to default scripts (#18780) 2024-05-07 13:02:08 -03:00
remove_exe.ps1 fix issues installing software in windows (#19048) 2024-05-15 19:39:42 -03:00
remove_msi.ps1 fix issues installing software in windows (#19048) 2024-05-15 19:39:42 -03:00
remove_pkg.sh missing validations and tweaks to default scripts (#18780) 2024-05-07 13:02:08 -03:00

File scripts

This folder contains scripts to install/remove software for different types of installers.

Scripts are stored on their own files for two reasons:

  1. Some of them are read and displayed in the UI.
  2. It's helpful to have good syntax highlighting and easy ways to run them.

Variables

The scripts in this folder accept variables like $VAR_NAME that will be replaced/populated by fleetd when they run.

Supported variables are:

  • $INSTALLER_PATH path to the installer file.