From ec2ae756b47123bda0dfa0c17060ec40a7a4f388 Mon Sep 17 00:00:00 2001 From: SunBK201 Date: Sat, 17 Feb 2024 21:03:51 +0800 Subject: [PATCH] fix: lua file dir not exist --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index b3ccab4..ca9ddae 100755 --- a/install.sh +++ b/install.sh @@ -76,6 +76,7 @@ if [ $? -ne 0 ]; then echo "Download cbi.lua Failed, Please Retry." exit 1 fi +mkdir -p /usr/lib/lua/luci/model/cbi mv cbi.lua /usr/lib/lua/luci/model/cbi/ua3f.lua wget https://blog.sunbk201.site/cdn/controller.lua @@ -83,6 +84,7 @@ if [ $? -ne 0 ]; then echo "Download controller.lua Failed, Please Retry." exit 1 fi +mkdir -p /usr/lib/lua/luci/controller mv controller.lua /usr/lib/lua/luci/controller/ua3f.lua rm /tmp/luci-modulecache/* >/dev/null 2>&1