mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Merge branch 'main' of https://github.com/jokob-sk/NetAlertX
This commit is contained in:
@@ -15,8 +15,8 @@ fi
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
tini snmp ca-certificates curl libwww-perl arp-scan perl apt-utils cron sudo \
|
tini snmp ca-certificates curl libwww-perl arp-scan perl apt-utils cron sudo \
|
||||||
nginx-light php php-cgi php-fpm php-sqlite3 php-curl php-openssl sqlite3 dnsutils net-tools \
|
nginx-light php php-cgi php-fpm php-sqlite3 php-curl sqlite3 dnsutils net-tools \
|
||||||
python3 python3-dev iproute2 nmap python3-pip zip systemctl usbutils traceroute nbtscan avahi avahi-tools openrc dbus build-essential git
|
python3 python3-dev iproute2 nmap python3-pip zip usbutils traceroute nbtscan avahi-daemon avahi-utils openrc build-essential git
|
||||||
|
|
||||||
# alternate dependencies
|
# alternate dependencies
|
||||||
sudo apt-get install nginx nginx-core mtr php-fpm php8.2-fpm php-cli php8.2 php8.2-sqlite3 -y
|
sudo apt-get install nginx nginx-core mtr php-fpm php8.2-fpm php-cli php8.2 php8.2-sqlite3 -y
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ fi
|
|||||||
|
|
||||||
# create symbolic link to the install directory
|
# create symbolic link to the install directory
|
||||||
ln -s $INSTALL_PATH/front $WEB_UI_DIR
|
ln -s $INSTALL_PATH/front $WEB_UI_DIR
|
||||||
# create symbolic link to NGINX configuaration coming with NetAlertX
|
# create symbolic link to NGINX configuration coming with NetAlertX
|
||||||
sudo ln -s "${INSTALL_PATH}/install/netalertx.debian.conf" /etc/nginx/conf.d/$NGINX_CONF_FILE
|
sudo ln -s "${INSTALL_PATH}/install/netalertx.debian.conf" /etc/nginx/conf.d/$NGINX_CONF_FILE
|
||||||
|
|
||||||
# Use user-supplied port if set
|
# Use user-supplied port if set
|
||||||
@@ -100,11 +100,11 @@ fi
|
|||||||
|
|
||||||
# Create the execution_queue.log file if it doesn't exist
|
# Create the execution_queue.log file if it doesn't exist
|
||||||
touch "${INSTALL_DIR}"/log/{app.log,execution_queue.log,app_front.log,app.php_errors.log,stderr.log,stdout.log,db_is_locked.log}
|
touch "${INSTALL_DIR}"/log/{app.log,execution_queue.log,app_front.log,app.php_errors.log,stderr.log,stdout.log,db_is_locked.log}
|
||||||
touch "${INSTALL_DIR}"/api/{user_notifications.json}
|
touch "${INSTALL_DIR}"/api/user_notifications.json
|
||||||
|
|
||||||
|
|
||||||
# Fixing file permissions
|
# Fixing file permissions
|
||||||
echo "[INSTALL] Fixing file permissions"
|
echo "[INSTALL] Fixing file permissions"
|
||||||
|
chown root:www-data "${INSTALL_DIR}"/api/user_notifications.json
|
||||||
|
|
||||||
echo "[INSTALL] Fixing WEB_UI_DIR: ${WEB_UI_DIR}"
|
echo "[INSTALL] Fixing WEB_UI_DIR: ${WEB_UI_DIR}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user