diff --git a/back/update_vendors.sh b/back/update_vendors.sh index 7ce6c4f1..a1881dc4 100755 --- a/back/update_vendors.sh +++ b/back/update_vendors.sh @@ -1,4 +1,5 @@ -#!/bin/sh +#!/usr/bin/env bash + # ------------------------------------------------------------------------------ # Pi.Alert # Open Source Network Guard / WIFI & LAN intrusion detector diff --git a/dockerfiles/start.sh b/dockerfiles/start.sh index dbf837f2..96a23a03 100755 --- a/dockerfiles/start.sh +++ b/dockerfiles/start.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------------------------------------------------------" echo "[INSTALL] Run start.sh" @@ -10,6 +10,7 @@ INSTALL_DIR=/home/pi # Specify the installation directory here # DO NOT CHANGE ANYTHING BELOW THIS LINE! WEB_UI_DIR=/var/www/html/pialert NGINX_CONFIG_FILE=/etc/nginx/conf.d/pialert.conf +OUI_FILE="/usr/share/arp-scan/ieee-oui.txt" # Define the path to ieee-oui.txt and ieee-iab.txt # DO NOT CHANGE ANYTHING ABOVE THIS LINE! # if custom variables not set we do not need to do anything @@ -76,11 +77,8 @@ fi # Run the hardware vendors update at least once echo "[INSTALL] Run the hardware vendors update" -# Define the path to ieee-oui.txt and ieee-iab.txt -oui_file="/usr/share/arp-scan/ieee-oui.txt" - # Check if ieee-oui.txt or ieee-iab.txt exist -if [ -f "$oui_file" ]; then +if [ -f "$OUI_FILE" ]; then echo "The file ieee-oui.txt exists. Skipping update_vendors.sh..." else echo "The file ieee-oui.txt does not exist. Running update_vendors..." diff --git a/dockerfiles/user-mapping.sh b/dockerfiles/user-mapping.sh index eeff48bd..a80ec0b4 100755 --- a/dockerfiles/user-mapping.sh +++ b/dockerfiles/user-mapping.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------------------------------------------------------" echo "[INSTALL] Run user-mapping.sh" diff --git a/install/install.sh b/install/install.sh index 832488fc..ea08e9f3 100755 --- a/install/install.sh +++ b/install/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------------------------------------------------------" echo "[INSTALL] Run install.sh" diff --git a/install/install_dependencies.sh b/install/install_dependencies.sh index 4e54dea5..ea6a6a96 100755 --- a/install/install_dependencies.sh +++ b/install/install_dependencies.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------------------------------------------------------" echo "[INSTALL] Run install_dependencies.sh"