More refactoring
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Pi.Alert
|
# Pi.Alert
|
||||||
# Open Source Network Guard / WIFI & LAN intrusion detector
|
# Open Source Network Guard / WIFI & LAN intrusion detector
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "---------------------------------------------------------"
|
echo "---------------------------------------------------------"
|
||||||
echo "[INSTALL] Run start.sh"
|
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!
|
# DO NOT CHANGE ANYTHING BELOW THIS LINE!
|
||||||
WEB_UI_DIR=/var/www/html/pialert
|
WEB_UI_DIR=/var/www/html/pialert
|
||||||
NGINX_CONFIG_FILE=/etc/nginx/conf.d/pialert.conf
|
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!
|
# DO NOT CHANGE ANYTHING ABOVE THIS LINE!
|
||||||
|
|
||||||
# if custom variables not set we do not need to do anything
|
# 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
|
# Run the hardware vendors update at least once
|
||||||
echo "[INSTALL] Run the hardware vendors update"
|
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
|
# 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..."
|
echo "The file ieee-oui.txt exists. Skipping update_vendors.sh..."
|
||||||
else
|
else
|
||||||
echo "The file ieee-oui.txt does not exist. Running update_vendors..."
|
echo "The file ieee-oui.txt does not exist. Running update_vendors..."
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "---------------------------------------------------------"
|
echo "---------------------------------------------------------"
|
||||||
echo "[INSTALL] Run user-mapping.sh"
|
echo "[INSTALL] Run user-mapping.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "---------------------------------------------------------"
|
echo "---------------------------------------------------------"
|
||||||
echo "[INSTALL] Run install.sh"
|
echo "[INSTALL] Run install.sh"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "---------------------------------------------------------"
|
echo "---------------------------------------------------------"
|
||||||
echo "[INSTALL] Run install_dependencies.sh"
|
echo "[INSTALL] Run install_dependencies.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user