mirror of
https://github.com/agessaman/meshcore-packet-capture.git
synced 2026-04-20 23:23:37 +00:00
update install.sh to check for MQTT brokers in .env.local
This commit is contained in:
parent
ebf4745c71
commit
56d5bee88e
1 changed files with 9 additions and 1 deletions
10
install.sh
10
install.sh
|
|
@ -1382,9 +1382,17 @@ main() {
|
|||
else
|
||||
print_info "Keeping existing configuration"
|
||||
# Check if MQTT brokers are already configured
|
||||
if grep -q "^PACKETCAPTURE_MQTT[1-4]_ENABLED=true" "$INSTALL_DIR/.env.local" 2>/dev/null; then
|
||||
if [ -f "$INSTALL_DIR/.env.local" ] && grep -q "^PACKETCAPTURE_MQTT[1-4]_ENABLED=true" "$INSTALL_DIR/.env.local" 2>/dev/null; then
|
||||
print_info "MQTT brokers already configured - skipping MQTT configuration"
|
||||
else
|
||||
# Debug: Show what we're checking
|
||||
if [ -f "$INSTALL_DIR/.env.local" ]; then
|
||||
print_info "Checking for MQTT brokers in: $INSTALL_DIR/.env.local"
|
||||
print_info "Found MQTT lines:"
|
||||
grep "^PACKETCAPTURE_MQTT[1-4]_ENABLED=" "$INSTALL_DIR/.env.local" 2>/dev/null || echo " (none found)"
|
||||
else
|
||||
print_info "Configuration file not found: $INSTALL_DIR/.env.local"
|
||||
fi
|
||||
# Still need to configure MQTT brokers if not already configured
|
||||
configure_mqtt_brokers_only
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue