aliyundrive-fuse: update to 0.1.11

This commit is contained in:
messense 2022-05-16 15:36:48 +00:00 committed by Beginner-Go
parent c3fd36b14f
commit 77a3bd982a
2 changed files with 6 additions and 0 deletions

View File

@ -5,3 +5,4 @@ config default
option domain_id ''
option mount_point '/mnt/aliyundrive'
option read_buffer_size '10485760'
option allow_other '1'

View File

@ -20,6 +20,7 @@ start_service() {
local domain_id=$(uci_get_by_type default domain_id)
local mount_point=$(uci_get_by_type default mount_point)
local read_buf_size=$(uci_get_by_type default read_buffer_size 10485760)
local allow_other=$(uci_get_by_type default allow_other 0)
local extra_options=""
@ -27,6 +28,10 @@ start_service() {
extra_options="$extra_options --domain-id $domain_id"
fi
if [ "$allow_other" = "1" ]; then
extra_options="$extra_options --allow-other"
fi
mkdir -p "$mount_point"
procd_open_instance
procd_set_param command /bin/sh -c "/usr/bin/$NAME $extra_options -S $read_buf_size --workdir /var/run/$NAME $mount_point >>/var/log/$NAME.log 2>&1"