mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-08-01 07:07:52 +08:00
22 lines
430 B
Bash
22 lines
430 B
Bash
#!/bin/sh
|
|
[ ! -f "/usr/share/ucitrack/luci-app-cloudreve.json" ] && {
|
|
cat > /usr/share/ucitrack/luci-app-cloudreve.json << EEOF
|
|
{
|
|
"config": "cloudreve",
|
|
"init": "cloudreve"
|
|
}
|
|
EEOF
|
|
}
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@cloudreve[-1]
|
|
add ucitrack cloudreve
|
|
set ucitrack.@cloudreve[-1].init=cloudreve
|
|
commit ucitrack
|
|
EOF
|
|
|
|
chmod +x /etc/init.d/cloudreve >/dev/null 2>&1
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|