Skip to content

Instantly share code, notes, and snippets.

View Cloud0310's full-sized avatar
🧐
Learning

Cloud Cloud0310

🧐
Learning
View GitHub Profile
#!/bin/bash
set -euo pipefail
# --- Configuration ---
GITHUB_REPO="MetaCubex/mihomo"
CONFIG_REMOTE_URL=""
CONFIG_LOCAL_FILE="/etc/mihomo/config.yaml"
MIHOMO_API_URL="http://localhost:9090"
MIHOMO_API_TOKEN=""
@Cloud0310
Cloud0310 / mihomo-update.service
Last active October 11, 2025 16:42
Mihomo config update script and systemd service file
[Unit]
Description=Auto update mihomo config file
After=mihomo.service network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/update-mihomo-config.sh