thinking git directory
This commit is contained in:
parent
0c743ce927
commit
9c277f4871
3 changed files with 10 additions and 6 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -15,4 +15,8 @@
|
||||||
# Executables
|
# Executables
|
||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
|
||||||
|
# Auth
|
||||||
|
auth
|
||||||
|
auth/*
|
||||||
|
|
|
@ -19,15 +19,15 @@ dpkg -i libcrypt-passwd-xs-perl_0.601-1_amd64.deb
|
||||||
Config
|
Config
|
||||||
---
|
---
|
||||||
|
|
||||||
echo "/usr/local/ortiche/pureftpd-auth.pl" > /etc/pure-ftpd/conf/ExtAuth
|
echo "/usr/local/ortiche/pureftpd-auth/pureftpd-auth.pl" > /etc/pure-ftpd/conf/ExtAuth
|
||||||
echo "yes" > /etc/pure-ftpd/conf/CreateHomeDir
|
echo "yes" > /etc/pure-ftpd/conf/CreateHomeDir
|
||||||
rm -fr /etc/pure-ftpd/auth/
|
rm -fr /etc/pure-ftpd/auth/
|
||||||
ln -s /etc/pure-ftpd/conf/ExtAuth /etc/pure-ftpd/auth/ExtAuth
|
ln -s /etc/pure-ftpd/conf/ExtAuth /etc/pure-ftpd/auth/ExtAuth
|
||||||
|
|
||||||
Auth
|
Auth
|
||||||
---
|
---
|
||||||
mkdir /usr/local/ortiche/auth
|
mkdir /usr/local/ortiche/pureftpd-auth/auth
|
||||||
vi /usr/local/ortiche/auth/pureftpd.pl
|
vi /usr/local/ortiche/pureftpd-auth/auth/pureftpd.pl
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
@ -43,7 +43,7 @@ Running
|
||||||
---
|
---
|
||||||
/usr/sbin/pure-ftpd -d -A -B -4 -Z -p 50000:50601 -H -Y 1 -E -k 98 -C 5 -c 30 -lextauth:/var/run/pure-ftpd/extauth.sock
|
/usr/sbin/pure-ftpd -d -A -B -4 -Z -p 50000:50601 -H -Y 1 -E -k 98 -C 5 -c 30 -lextauth:/var/run/pure-ftpd/extauth.sock
|
||||||
|
|
||||||
/usr/sbin/pure-authd -s /var/run/pure-ftpd/extauth.sock -r /usr/local/ortiche/pureftpd-auth.pl &
|
/usr/sbin/pure-authd -s /var/run/pure-ftpd/extauth.sock -r /usr/local/ortiche/pureftpd-auth/pureftpd-auth.pl &
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ use Log::Log4perl qw(get_logger :levels);
|
||||||
|
|
||||||
### conf
|
### conf
|
||||||
#
|
#
|
||||||
$SCRIPT_DIR="/usr/local/ortiche";
|
$SCRIPT_DIR="/usr/local/ortiche/pureftpd-auth";
|
||||||
$AUTH_DIR="$SCRIPT_DIR/auth";
|
$AUTH_DIR="$SCRIPT_DIR/auth";
|
||||||
require "$AUTH_DIR/pureftpd.pl";
|
require "$AUTH_DIR/pureftpd.pl";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue