dot

packages and services management
Log | Files | Refs | README

commit ea5a6eb4a52a1379a5c8c5e22fac8c36913fba9e
parent 6e453d11e78a7c8027d07567833aec076739a28f
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 28 Nov 2018 00:02:55 +0100

pack/vsftpd: completed configuration further more

Diffstat:
Rs6/vsftpd/x/conf/connect_from_port_20 -> s6/vsftpd/josuah.net/conf/local_enable | 0
As6/vsftpd/josuah.net/data/banner | 3+++
As6/vsftpd/tls/conf/allow_anon_ssl | 1+
Ms6/vsftpd/x/conf/anon_root | 2+-
As6/vsftpd/x/conf/banner_file | 1+
Rs6/vsftpd/x/conf/connect_from_port_20 -> s6/vsftpd/x/conf/delete_failed_uploads | 0
Rs6/vsftpd/x/conf/connect_from_port_20 -> s6/vsftpd/x/conf/dirmessage_enable | 0
As6/vsftpd/x/conf/listen_port | 1+
As6/vsftpd/x/conf/local_enable | 1+
As6/vsftpd/x/conf/mdtm_write | 1+
As6/vsftpd/x/conf/message_file | 1+
As6/vsftpd/x/conf/port_enable | 1+
Ms6/vsftpd/x/conf/secure_chroot_dir | 2+-
As6/vsftpd/x/conf/user_config_dir | 1+
Cs6/vsftpd/x/conf/anon_root -> s6/vsftpd/x/conf/user_sub_token | 0
As6/vsftpd/x/conf/userlist_deny | 1+
Rs6/vsftpd/x/conf/connect_from_port_20 -> s6/vsftpd/x/conf/userlist_enable | 0
As6/vsftpd/x/conf/userlist_file | 1+
As6/vsftpd/x/data/banner | 0
Ms6/vsftpd/x/setup | 21+++++++++++++++------
20 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/s6/vsftpd/x/conf/connect_from_port_20 b/s6/vsftpd/josuah.net/conf/local_enable diff --git a/s6/vsftpd/josuah.net/data/banner b/s6/vsftpd/josuah.net/data/banner @@ -0,0 +1,3 @@ + josuah.net + ftp + daemon diff --git a/s6/vsftpd/tls/conf/allow_anon_ssl b/s6/vsftpd/tls/conf/allow_anon_ssl @@ -0,0 +1 @@ +NO diff --git a/s6/vsftpd/x/conf/anon_root b/s6/vsftpd/x/conf/anon_root @@ -1 +1 @@ -/var/ftp +/var/ftp/anonymous diff --git a/s6/vsftpd/x/conf/banner_file b/s6/vsftpd/x/conf/banner_file @@ -0,0 +1 @@ +data/banner diff --git a/s6/vsftpd/x/conf/connect_from_port_20 b/s6/vsftpd/x/conf/delete_failed_uploads diff --git a/s6/vsftpd/x/conf/connect_from_port_20 b/s6/vsftpd/x/conf/dirmessage_enable diff --git a/s6/vsftpd/x/conf/listen_port b/s6/vsftpd/x/conf/listen_port @@ -0,0 +1 @@ +21 diff --git a/s6/vsftpd/x/conf/local_enable b/s6/vsftpd/x/conf/local_enable @@ -0,0 +1 @@ +NO diff --git a/s6/vsftpd/x/conf/mdtm_write b/s6/vsftpd/x/conf/mdtm_write @@ -0,0 +1 @@ +NO diff --git a/s6/vsftpd/x/conf/message_file b/s6/vsftpd/x/conf/message_file @@ -0,0 +1 @@ +index.ftp diff --git a/s6/vsftpd/x/conf/port_enable b/s6/vsftpd/x/conf/port_enable @@ -0,0 +1 @@ +NO diff --git a/s6/vsftpd/x/conf/secure_chroot_dir b/s6/vsftpd/x/conf/secure_chroot_dir @@ -1 +1 @@ -/var/ftp +/usr/share/empty diff --git a/s6/vsftpd/x/conf/user_config_dir b/s6/vsftpd/x/conf/user_config_dir @@ -0,0 +1 @@ +data/user diff --git a/s6/vsftpd/x/conf/anon_root b/s6/vsftpd/x/conf/user_sub_token diff --git a/s6/vsftpd/x/conf/userlist_deny b/s6/vsftpd/x/conf/userlist_deny @@ -0,0 +1 @@ +NO diff --git a/s6/vsftpd/x/conf/connect_from_port_20 b/s6/vsftpd/x/conf/userlist_enable diff --git a/s6/vsftpd/x/conf/userlist_file b/s6/vsftpd/x/conf/userlist_file @@ -0,0 +1 @@ +data/userlist diff --git a/s6/vsftpd/x/data/banner b/s6/vsftpd/x/data/banner diff --git a/s6/vsftpd/x/setup b/s6/vsftpd/x/setup @@ -1,14 +1,23 @@ #!/usr/bin/env execlineb -if { mkdir -p data } +if { + forx x { secure_chroot_dir user_sub_token } + importas dir x -redirfd -w 1 data/conf -cd conf + redirfd -r 0 conf/${dir} + withstdinas x + importas -n x x + + mkdir -p ${x} +} -forbacktickx x { ls } +if { redirfd -w 1 data/userlist ls data/user } + +redirfd -w 1 data/conf +forbacktickx -n x { ls conf } importas var x -redirfd -r 0 $var withstdinas x +redirfd -r 0 conf/${var} withstdinas x importas -n x x -printf "%s=%s\n" $var $x +printf "%s=%s\n" ${var} ${x}