Tidy up output

This commit is contained in:
Adam Outler
2025-10-23 21:16:15 -04:00
parent 7a3bf6716c
commit 0897c05200
5 changed files with 8 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
check_mandatory_folders() {
# Check and create plugins log directory
if [ ! -d "${NETALERTX_PLUGINS_LOG}" ]; then
echo "Warning: Plugins log directory missing, creating..."
echo " * Creating Plugins log."
if ! mkdir -p "${NETALERTX_PLUGINS_LOG}"; then
echo "Error: Failed to create plugins log directory: ${NETALERTX_PLUGINS_LOG}"
return 1
@@ -14,7 +14,7 @@ check_mandatory_folders() {
# Check and create system services run log directory
if [ ! -d "${SYSTEM_SERVICES_RUN_LOG}" ]; then
echo "Warning: System services run log directory missing, creating..."
echo " * Creating System services run log."
if ! mkdir -p "${SYSTEM_SERVICES_RUN_LOG}"; then
echo "Error: Failed to create system services run log directory: ${SYSTEM_SERVICES_RUN_LOG}"
return 1
@@ -23,7 +23,7 @@ check_mandatory_folders() {
# Check and create system services run tmp directory
if [ ! -d "${SYSTEM_SERVICES_RUN_TMP}" ]; then
echo "Warning: System services run tmp directory missing, creating..."
echo " * Creating System services run tmp."
if ! mkdir -p "${SYSTEM_SERVICES_RUN_TMP}"; then
echo "Error: Failed to create system services run tmp directory: ${SYSTEM_SERVICES_RUN_TMP}"
return 1
@@ -32,7 +32,7 @@ check_mandatory_folders() {
# Check and create DB locked log file
if [ ! -f "${LOG_DB_IS_LOCKED}" ]; then
echo "Warning: DB locked log file missing, creating..."
echo " * Creating DB locked log."
if ! touch "${LOG_DB_IS_LOCKED}"; then
echo "Error: Failed to create DB locked log file: ${LOG_DB_IS_LOCKED}"
return 1
@@ -41,7 +41,7 @@ check_mandatory_folders() {
# Check and create execution queue log file
if [ ! -f "${LOG_EXECUTION_QUEUE}" ]; then
echo "Warning: Execution queue log file missing, creating..."
echo " * Creating Execution queue log."
if ! touch "${LOG_EXECUTION_QUEUE}"; then
echo "Error: Failed to create execution queue log file: ${LOG_EXECUTION_QUEUE}"
return 1

View File

@@ -45,6 +45,6 @@ if [ "${failures}" -ne 0 ]; then
exit 0
fi
if [ ! -f "${SYSTEM_NGINX_CONFIG}/conf.active" ]; then
if [ ! -d "${SYSTEM_NGINX_CONFIG}/conf.active" ]; then
echo "Note: Using default listen address ${LISTEN_ADDR}:${PORT} (no ${SYSTEM_NGINX_CONFIG}/conf.active override)."
fi