op-packages/luci-app-pushbot/root/etc/uci-defaults/luci-pushbot
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

20 lines
358 B
Bash

#!/bin/sh
[ ! -f "/usr/share/ucitrack/luci-app-pushbot.json" ] && {
cat > /usr/share/ucitrack/luci-app-pushbot.json << EEOF
{
"config": "pushbot",
"init": "pushbot"
}
EEOF
}
uci -q batch <<-EOF >/dev/null
delete ucitrack.@pushbot[-1]
add ucitrack pushbot
set ucitrack.@pushbot[-1].init=pushbot
commit ucitrack
EOF
rm -rf /tmp/luci-*
exit 0