mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2024-12-14 00:26:27
This commit is contained in:
parent
17a70d691a
commit
bb619e7ce2
@ -11,7 +11,7 @@ PKG_VERSION:=2.6
|
||||
PKG_RELEASE:=20241204
|
||||
|
||||
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
|
||||
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_DESCRIPTION:=A Web based File Manager in PHP
|
||||
|
||||
|
@ -97,18 +97,19 @@ start_service() {
|
||||
mkdir /var/etc 2>/dev/null
|
||||
touch "$CONF"
|
||||
ln -s "$CONF" "$WORKDIR/config.php" 2>/dev/null
|
||||
init_config "$CONF"
|
||||
|
||||
config_load "$CONFIG_NAME"
|
||||
config_foreach validate_section "$TYPEDSECTION" apply_config
|
||||
|
||||
# CONFIG save
|
||||
procd_open_instance "config-save"
|
||||
procd_set_param command "/usr/libexec/tinyfilemanager-config-save"
|
||||
procd_set_param env CONF=$CONF
|
||||
procd_set_param file $CONF
|
||||
procd_set_param respawn
|
||||
#procd_set_param stdout 1
|
||||
#procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
|
||||
init_config "$CONF"
|
||||
config_load "$CONFIG_NAME"
|
||||
config_foreach validate_section "$TYPEDSECTION" apply_config
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
@ -125,3 +126,7 @@ check() {
|
||||
> "$VARDIR/releaseslist"
|
||||
[ "$?" != 0 ] || sed -i 'i\master' "$VARDIR/releaseslist"
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
restart "$@"
|
||||
}
|
||||
|
@ -1,13 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
CONFIG_NAME='tinyfilemanager'
|
||||
eval "$(sed -En '/^\$CONFIG\s*=\s*/{s|^\$CONFIG\s*=\s*|CONFIG=|p}' $CONF | tr -d '\r')"
|
||||
|
||||
if [ -n "$CONFIG" ]; then
|
||||
uci set $CONFIG_NAME.@$TYPEDSECTION[0].defconf="$CONFIG"
|
||||
[ -z "$(uci changes $CONFIG_NAME)" ] || uci commit $CONFIG_NAME
|
||||
fi
|
||||
|
||||
while :; do
|
||||
sleep 86400
|
||||
inotifywait -e modify $CONF 2>/dev/null
|
||||
|
||||
CONFIG="$(sed -En "/^\\\$CONFIG\s*=.*/{s|^.+'(.+)'.*|\1|p}" $CONF)"
|
||||
if [ -n "$CONFIG" ]; then
|
||||
uci set $CONFIG_NAME.@$TYPEDSECTION[0].defconf="$CONFIG"
|
||||
[ -z "$(uci changes $CONFIG_NAME)" ] || uci commit $CONFIG_NAME
|
||||
fi
|
||||
done
|
||||
|
@ -30,13 +30,13 @@ define Download/geosite
|
||||
HASH:=e414da6132d8b406827b827f246c3fe9759530d61f191b866836fe4d0a7b13a4
|
||||
endef
|
||||
|
||||
GEOSITE_IRAN_VER:=202412101148
|
||||
GEOSITE_IRAN_VER:=202412131418
|
||||
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)/
|
||||
URL_FILE:=iran.dat
|
||||
FILE:=$(GEOSITE_IRAN_FILE)
|
||||
HASH:=b4a5bd7a6d981ac900798764bdeeb87525576ed64f687b50fe4fb0e72593c016
|
||||
HASH:=3d123bb0c0355a4138b6b1e5259cde523755311b1ddce16a1e6e07642392f7a7
|
||||
endef
|
||||
|
||||
define Package/v2ray-geodata/template
|
||||
|
Loading…
Reference in New Issue
Block a user