Create luci-caddy

This commit is contained in:
lmq8267 2024-01-18 14:52:50 +08:00 committed by GitHub
parent 7f2cb258d2
commit 7bc326e7d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,12 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@caddy[-1]
add ucitrack caddy
set ucitrack.@caddy[-1].init=caddy
commit ucitrack
EOF
rm -rf /tmp/luci-*
chmod 755 /etc/init.d/caddy
exit 0