From a8491d2a4e6a49c3b248c53f184416ab9de28c7d Mon Sep 17 00:00:00 2001 From: trick77 Date: Sun, 7 Jan 2024 10:11:37 +0100 Subject: [PATCH] Remove install script --- agent-local/README.md | 3 ++- agent-local/install.sh | 28 ---------------------------- 2 files changed, 2 insertions(+), 29 deletions(-) delete mode 100755 agent-local/install.sh diff --git a/agent-local/README.md b/agent-local/README.md index a0f3d4c..0c42732 100644 --- a/agent-local/README.md +++ b/agent-local/README.md @@ -7,7 +7,8 @@ guidance on how to use them. ## Script installation -Use the provided `install.sh` to directly install from this repository without cloning it. +Use the provided `install.sh` to directly install from this repository without cloning it: +`bash ...` ## dpgk diff --git a/agent-local/install.sh b/agent-local/install.sh deleted file mode 100755 index c783317..0000000 --- a/agent-local/install.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -set -eo pipefail - -destination_dir=/usr/lib/observium_agent/local - - copy_and_set_permissions() { - local script_name=$1 - read -p "Install ${script_name} script? (y/n): " copy_script - if [[ $copy_script =~ ^[Yy]$ ]]; then - cp ./${script_name}* "${destination_dir}" && chmod +x "${destination_dir}/${script_name}" - echo "${script_name} script copied and permissions set." - fi - } - -if [ -w "${destination_dir}" ]; then - copy_and_set_permissions "dpkg" - copy_and_set_permissions "ioping" - copy_and_set_permissions "smarttemp" - - echo "Installation complete." - if [ -f "${destination_dir}/ioping.conf" ]; then - echo "Don't forget to edit ${destination_dir}/ioping.conf" - fi -else - echo "Error: local agent scripts directory does not exist at ${destination_dir} or is not writeable" - exit 1 -fi