mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
fixing tailscale config
This commit is contained in:
@@ -2075,10 +2075,14 @@ generate_summary() {
|
|||||||
print_success "Service tailscaled is active and connected."
|
print_success "Service tailscaled is active and connected."
|
||||||
echo "$TS_IPS" > /tmp/tailscale_ips.txt
|
echo "$TS_IPS" > /tmp/tailscale_ips.txt
|
||||||
else
|
else
|
||||||
|
if grep -q "Tailscale connection failed: tailscale up" "$LOG_FILE"; then
|
||||||
print_error "Service tailscaled is NOT active"
|
print_error "Service tailscaled is NOT active"
|
||||||
FAILED_SERVICES+=("tailscaled")
|
FAILED_SERVICES+=("tailscaled")
|
||||||
TS_COMMAND=$(grep "Tailscale connection failed: tailscale up" "$LOG_FILE" | tail -1 | sed 's/.*Tailscale connection failed: //')
|
TS_COMMAND=$(grep "Tailscale connection failed: tailscale up" "$LOG_FILE" | tail -1 | sed 's/.*Tailscale connection failed: //')
|
||||||
TS_COMMAND=${TS_COMMAND:-"tailscale up --operator=$USERNAME"}
|
TS_COMMAND=${TS_COMMAND:-""}
|
||||||
|
else
|
||||||
|
print_info "Service tailscaled is installed but not configured."
|
||||||
|
TS_COMMAND=""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$AUDIT_RAN" == true ]]; then
|
if [[ "$AUDIT_RAN" == true ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user