diff --git a/install/install_dependencies.debian.sh b/install/install_dependencies.debian.sh index 3d359f37..bfe895f2 100755 --- a/install/install_dependencies.debian.sh +++ b/install/install_dependencies.debian.sh @@ -15,8 +15,8 @@ fi # Install dependencies apt-get install -y \ 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 \ - python3 python3-dev iproute2 nmap python3-pip zip systemctl usbutils traceroute nbtscan avahi avahi-tools openrc dbus build-essential git + nginx-light php php-cgi php-fpm php-sqlite3 php-curl sqlite3 dnsutils net-tools \ + python3 python3-dev iproute2 nmap python3-pip zip usbutils traceroute nbtscan avahi-daemon avahi-utils openrc build-essential git # alternate dependencies sudo apt-get install nginx nginx-core mtr php-fpm php8.2-fpm php-cli php8.2 php8.2-sqlite3 -y diff --git a/install/start.debian.sh b/install/start.debian.sh index 6ec02274..db0bd58f 100755 --- a/install/start.debian.sh +++ b/install/start.debian.sh @@ -64,7 +64,7 @@ fi # create symbolic link to the install directory 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 # Use user-supplied port if set @@ -100,11 +100,11 @@ fi # 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}"/api/{user_notifications.json} - +touch "${INSTALL_DIR}"/api/user_notifications.json # 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}"