From 82c5c6aa769619fe4c2bc531eda3b7460ee057e1 Mon Sep 17 00:00:00 2001 From: Grzegorz Surmann Date: Mon, 29 Jul 2024 00:40:33 +0000 Subject: [PATCH] more fixes --- bin/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index 3c652d6..94d701d 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export PATH @@ -34,11 +34,12 @@ export DEBIAN_FRONTEND trap "dpkg --configure -a" 1 2 3 9 11 15 echo "## installing tools" +ls -al /opt/bgpblist/ >/dev/null && exit 1 apt-get -q -y install git iproute2 php-cli wget curl | grep -v -e "is already the newest version" echo "## installing service" -mkdir -p /opt/ -git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist +mkdir -p /opt/bgpblist/ +git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist || exit 1 cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service systemctl daemon-reload