From 548287dfc15c23123f0343c7bd49ea7ef86445f3 Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Mon, 27 Jan 2025 13:30:38 +0100 Subject: [PATCH] format install scripts --- runs/install_packages.sh | 18 +++++++++--------- runs/install_zabbix.sh | 11 +++++------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/runs/install_packages.sh b/runs/install_packages.sh index 2273bf1abb..e796359251 100755 --- a/runs/install_packages.sh +++ b/runs/install_packages.sh @@ -1,13 +1,13 @@ #!/bin/bash echo "install required packages with 'apt-get'..." - sudo apt-get -q update - sudo apt-get -q -y install \ - vim bc jq socat sshpass sudo ssl-cert mmc-utils \ - apache2 libapache2-mod-php \ - php php-gd php-curl php-xml php-json \ - git \ - mosquitto mosquitto-clients \ - python3-pip \ - xserver-xorg x11-xserver-utils openbox-lxde-session lightdm lightdm-autologin-greeter accountsservice \ +sudo apt-get -q update +sudo apt-get -q -y install \ + vim bc jq socat sshpass sudo ssl-cert mmc-utils \ + apache2 libapache2-mod-php \ + php php-gd php-curl php-xml php-json \ + git \ + mosquitto mosquitto-clients \ + python3-pip \ + xserver-xorg x11-xserver-utils openbox-lxde-session lightdm lightdm-autologin-greeter accountsservice \ chromium chromium-l10n echo "done" diff --git a/runs/install_zabbix.sh b/runs/install_zabbix.sh index 4c9df924ca..001a338f76 100644 --- a/runs/install_zabbix.sh +++ b/runs/install_zabbix.sh @@ -1,15 +1,14 @@ #!/bin/bash echo "check if zabbix agent is already installed..." -if [ -z "$(dpkg -l | grep zabbix-agent2)" ] -then - echo "start download..." +if [ -z "$(dpkg -l | grep zabbix-agent2)" ]; then + echo "start download..." wget -P /tmp/ https://repo.zabbix.com/zabbix/6.2/raspbian/pool/main/z/zabbix-release/zabbix-release_6.2-3%2Bdebian11_all.deb sudo dpkg -i /tmp/zabbix-release_6.2-3+debian11_all.deb echo "install zabbix." sudo apt-get -q update - sudo apt install zabbix-agent2 zabbix-agent2-plugin-* + sudo apt-get install zabbix-agent2 zabbix-agent2-plugin-* sudo rm /tmp/zabbix-release_6.2-3+debian11_all.deb else - echo "nothing to do." + echo "nothing to do." fi -echo "done" \ No newline at end of file +echo "done"