update 2025-12-24 16:34:14

This commit is contained in:
kenzok8
2025-12-24 16:34:14 +08:00
parent 262077bac6
commit 0ce3701633
2 changed files with 6 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
LUCI_NAME:=luci-app-tinyfilemanager LUCI_NAME:=luci-app-tinyfilemanager
PKG_VERSION:=2.6 PKG_VERSION:=2.6
PKG_RELEASE:=20250804 PKG_RELEASE:=20251224
LUCI_TITLE:=LuCI Tiny File Manager 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 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
@@ -26,10 +26,12 @@ define Package/$(LUCI_NAME)/postinst
#!/bin/sh #!/bin/sh
mkdir -p "$${IPKG_INSTROOT}/www/tinyfilemanager" 2>/dev/null mkdir -p "$${IPKG_INSTROOT}/www/tinyfilemanager" 2>/dev/null
[ ! -d "$${IPKG_INSTROOT}/www/tinyfilemanager/rootfs" ] && ln -s / "$${IPKG_INSTROOT}/www/tinyfilemanager/rootfs" [ ! -d "$${IPKG_INSTROOT}/www/tinyfilemanager/rootfs" ] && ln -s / "$${IPKG_INSTROOT}/www/tinyfilemanager/rootfs"
memory_limit=16M #memory_limit = 8M
total_size_limit=5G #post_max_size = 8M total_size_limit=5G #post_max_size = 8M
single_size_limit=2G #upload_max_filesize = 2M single_size_limit=2G #upload_max_filesize = 2M
otime_uploads_limit=200 #max_file_uploads = 20 otime_uploads_limit=200 #max_file_uploads = 20
sed -Ei "s|^(post_max_size) *=.*$$|\1 = $$total_size_limit|; \ sed -Ei "s|^(memory_limit) *=.*$$|\1 = $$memory_limit|; \
s|^(post_max_size) *=.*$$|\1 = $$total_size_limit|; \
s|^(upload_max_filesize) *=.*$$|\1 = $$single_size_limit|; \ s|^(upload_max_filesize) *=.*$$|\1 = $$single_size_limit|; \
s|^(max_file_uploads) *=.*$$|\1 = $$otime_uploads_limit|" \ s|^(max_file_uploads) *=.*$$|\1 = $$otime_uploads_limit|" \
"$${IPKG_INSTROOT}/etc/php.ini" "$${IPKG_INSTROOT}/etc/php.ini"

View File

@@ -37,6 +37,7 @@ o.datatype = "and(uinteger,max(2048))"; //limit to 2048MB
And edit [Makefile](Makefile) before build And edit [Makefile](Makefile) before build
```makefile ```makefile
memory_limit=?? #Memory limit
total_size_limit=?? #Total size of multiple files total_size_limit=?? #Total size of multiple files
single_size_limit=?? #Max single file size single_size_limit=?? #Max single file size
otime_uploads_limit=?? #Max count of simultaneous uploads otime_uploads_limit=?? #Max count of simultaneous uploads
@@ -45,6 +46,7 @@ otime_uploads_limit=?? #Max count of simultaneous uploads
And edit `/etc/php.ini` in router And edit `/etc/php.ini` in router
```ini ```ini
memory_limit = ?? ;Memory limit
post_max_size = ?? ;Total size of multiple files post_max_size = ?? ;Total size of multiple files
upload_max_filesize = ?? ;Max single file size upload_max_filesize = ?? ;Max single file size
max_file_uploads = ?? ;Max count of simultaneous uploads max_file_uploads = ?? ;Max count of simultaneous uploads