Skip to content

Commit

Permalink
Merge branch 'optimize' into dev4
Browse files Browse the repository at this point in the history
* optimize:
  luci-app-oaf: fix uci update flag not commit after feature file uploaded

# Conflicts:
#	luci-app-oaf/Makefile
  • Loading branch information
jjm2473 committed Mar 15, 2024
2 parents ced1b40 + e5cfce9 commit c7d9802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion luci-app-oaf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LUCI_TITLE:=Open App Filter Module
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+appfilter +kmod-oaf +luci-compat
PKG_NAME:=luci-app-oaf
PKG_VERSION:=5.0.4
PKG_VERSION:=5.0.5
PKG_RELEASE:=
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
1 change: 1 addition & 0 deletions luci-app-oaf/luasrc/model/cbi/appfilter/feature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ http.setfilehandler(function(meta, chunk, eof)
os.execute("chmod 666 " .. feature_file);
os.execute("rm /tmp/appfilter -fr");
os.execute("uci set appfilter.feature.update=1");
os.execute("uci commit appfilter");
luci.sys.exec("/etc/init.d/appfilter restart");
um.value = translate("Update the feature file successfully, please refresh the page")
else
Expand Down

0 comments on commit c7d9802

Please sign in to comment.