mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-04 22:09:05 +08:00
update 2025-08-04 10:10:41
This commit is contained in:
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_NAME:=luci-app-tinyfilemanager
|
||||
PKG_VERSION:=2.6
|
||||
PKG_RELEASE:=20250801
|
||||
PKG_RELEASE:=20250804
|
||||
|
||||
LUCI_TITLE:=LuCI Tiny File Manager
|
||||
LUCI_DEPENDS:=+php8 +php8-cgi +php8-fastcgi +php8-fpm +php8-mod-session +php8-mod-ctype +php8-mod-fileinfo +php8-mod-zip +php8-mod-iconv +php8-mod-mbstring +coreutils-stat +zoneinfo-asia +bash +curl +tar +inotifywait
|
||||
|
||||
@@ -9,4 +9,4 @@ config main
|
||||
option show_second '0'
|
||||
option favicon_path '/tinyfilemanager/rootfs/etc/tinyfilemanager/favicon.png'
|
||||
option online_viewer '0'
|
||||
option defconf '{"lang":"en"}'
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ apply_config() {
|
||||
|
||||
local exclude_items=$(echo "$exclude_items"|sed -E "s/('[^']+'|[^' ]+)/'\1'/g; s|''|'|g; s|' '|',\\\n '|g; s|^| |")
|
||||
|
||||
sed -Ei "s|^\\\$CONFIG\s*=.*|\$CONFIG = '$defconf'\;|" "$_conf"
|
||||
[ -n "$defconf" ] && sed -Ei "s|^\\\$CONFIG\s*=.*|\$CONFIG = '$defconf'\;|" "$_conf"
|
||||
[ "$use_auth" -eq "1" ] && sed -Ei "s|(^\\\$use_auth =)(.+)|\1 true;|" "$_conf" || sed -Ei "s|(^\\\$use_auth =)(.+)|\1 false;|" "$_conf"
|
||||
[ "$global_readonly" -eq "1" ] && sed -Ei "s|(^\\\$global_readonly =)(.+)|\1 true;|" "$_conf" || sed -Ei "s|(^\\\$global_readonly =)(.+)|\1 false;|" "$_conf"
|
||||
sed -Ei "/^\\\$auth_users /,/\);/{/^ /d}" "$_conf" && sed -Ei "/^\\\$auth_users /a\ $auth_users" "$_conf"
|
||||
|
||||
@@ -9,9 +9,4 @@ uci changes uhttpd|grep . >/dev/null && uci commit uhttpd
|
||||
# nginx
|
||||
[ -n "$(command -v nginx)" ] && /etc/init.d/nginx reload
|
||||
|
||||
if ! uci -q get tinyfilemanager.@main[0].defconf >/dev/null; then
|
||||
uci set tinyfilemanager.@main[0].defconf='{"lang":"en"}'
|
||||
uci commit tinyfilemanager
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -30,7 +30,7 @@ define Download/geosite
|
||||
HASH:=01dae2a9c31b5c74ba7e54d8d51e0060688ed22da493eaf09f6eeeec89db395e
|
||||
endef
|
||||
|
||||
GEOSITE_IRAN_VER:=202507280048
|
||||
GEOSITE_IRAN_VER:=202508040050
|
||||
GEOSITE_IRAN_FILE:=iran.dat.$(GEOSITE_IRAN_VER)
|
||||
define Download/geosite-ir
|
||||
URL:=https://github.com/bootmortis/iran-hosted-domains/releases/download/$(GEOSITE_IRAN_VER)/
|
||||
|
||||
Reference in New Issue
Block a user