From 9c277f4871e0ffcce0d82667dc484cb2ba5f8f4d Mon Sep 17 00:00:00 2001 From: gine Date: Fri, 23 Oct 2015 10:09:00 +0200 Subject: [PATCH] thinking git directory --- .gitignore | 6 +++++- README.md | 8 ++++---- pureftpd-auth.pl | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index e7a909e..41a82b7 100755 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,8 @@ # Executables *.exe *.out -*.app \ No newline at end of file +*.app + +# Auth +auth +auth/* diff --git a/README.md b/README.md index 1201eb1..a5ab10a 100644 --- a/README.md +++ b/README.md @@ -19,15 +19,15 @@ dpkg -i libcrypt-passwd-xs-perl_0.601-1_amd64.deb 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 rm -fr /etc/pure-ftpd/auth/ ln -s /etc/pure-ftpd/conf/ExtAuth /etc/pure-ftpd/auth/ExtAuth Auth --- -mkdir /usr/local/ortiche/auth -vi /usr/local/ortiche/auth/pureftpd.pl +mkdir /usr/local/ortiche/pureftpd-auth/auth +vi /usr/local/ortiche/pureftpd-auth/auth/pureftpd.pl #!/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-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 & diff --git a/pureftpd-auth.pl b/pureftpd-auth.pl index fede40e..acc766c 100755 --- a/pureftpd-auth.pl +++ b/pureftpd-auth.pl @@ -18,7 +18,7 @@ use Log::Log4perl qw(get_logger :levels); ### conf # -$SCRIPT_DIR="/usr/local/ortiche"; +$SCRIPT_DIR="/usr/local/ortiche/pureftpd-auth"; $AUTH_DIR="$SCRIPT_DIR/auth"; require "$AUTH_DIR/pureftpd.pl";