More rename work

This commit is contained in:
jokob-sk
2024-04-07 12:38:17 +10:00
parent f06e084336
commit 775a119f32
106 changed files with 352 additions and 2390 deletions

View File

@@ -2,7 +2,7 @@
# NetAlertX
# Open Source Network Guard / WIFI & LAN intrusion detector
#
# index.html - Redirect default page to pialert web admin portal
# index.html - Redirect default page to NetAlertX web admin portal
#-------------------------------------------------------------------------------
# Puche 2021 GNU GPLv3
#--------------------------------------------------------------------------- -->

View File

@@ -34,5 +34,5 @@ if [ ! -f $INSTALL_DIR/pialert/front/buildtimestamp.txt ]; then
date +%s > $INSTALL_DIR/pialert/front/buildtimestamp.txt
fi
# Start PiAlert
# Start NetAlertX
"$INSTALL_DIR/pialert/install/start.debian.sh"

View File

@@ -49,19 +49,19 @@ fi
# Clear existing directories and files
if [ -d $WEB_UI_DIR ]; then
echo "Removing existing PiAlert web-UI"
echo "Removing existing NetAlertX web-UI"
sudo rm -R $WEB_UI_DIR
fi
if [ -f $NGINX_CONFIG_FILE ]; then
echo "Removing existing PiAlert NGINX config"
echo "Removing existing NetAlertX NGINX config"
sudo rm $NGINX_CONFIG_FILE
fi
# create symbolic link to the pialert install directory
ln -s $INSTALL_DIR/pialert/front $WEB_UI_DIR
# create symbolic link to NGINX configuaration coming with PiAlert
sudo ln -s "$INSTALL_DIR/pialert/install/pialert.debian.conf" /etc/nginx/conf.d/pialert.conf
# create symbolic link to NGINX configuaration coming with NetAlertX
sudo ln -s "$INSTALL_DIR/pialert/install/netalertx.debian.conf" /etc/nginx/conf.d/pialert.conf
# Use user-supplied port if set
if [ -n "${PORT}" ]; then
@@ -161,5 +161,5 @@ source myenv/bin/activate
echo "[INSTALL] 🚀 Starting app - navigate to your <server IP>:$PORT"
# Start the PiAlert python script
python $INSTALL_DIR/pialert/pialert/
# Start the NetAlertX python script
python $INSTALL_DIR/pialert/netalertx/