mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-04 22:09:05 +08:00
update 2025-12-24 16:34:14
This commit is contained in:
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_NAME:=luci-app-tinyfilemanager
|
||||
PKG_VERSION:=2.6
|
||||
PKG_RELEASE:=20250804
|
||||
PKG_RELEASE:=20251224
|
||||
|
||||
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
|
||||
@@ -26,10 +26,12 @@ define Package/$(LUCI_NAME)/postinst
|
||||
#!/bin/sh
|
||||
mkdir -p "$${IPKG_INSTROOT}/www/tinyfilemanager" 2>/dev/null
|
||||
[ ! -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
|
||||
single_size_limit=2G #upload_max_filesize = 2M
|
||||
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|^(max_file_uploads) *=.*$$|\1 = $$otime_uploads_limit|" \
|
||||
"$${IPKG_INSTROOT}/etc/php.ini"
|
||||
|
||||
@@ -37,6 +37,7 @@ o.datatype = "and(uinteger,max(2048))"; //limit to 2048MB
|
||||
And edit [Makefile](Makefile) before build
|
||||
|
||||
```makefile
|
||||
memory_limit=?? #Memory limit
|
||||
total_size_limit=?? #Total size of multiple files
|
||||
single_size_limit=?? #Max single file size
|
||||
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
|
||||
|
||||
```ini
|
||||
memory_limit = ?? ;Memory limit
|
||||
post_max_size = ?? ;Total size of multiple files
|
||||
upload_max_filesize = ?? ;Max single file size
|
||||
max_file_uploads = ?? ;Max count of simultaneous uploads
|
||||
|
||||
Reference in New Issue
Block a user