mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2022-03-04 18:00
This commit is contained in:
16
roles/sftpgo/files/hooks/anonymous-ftp-password-hook
Normal file
16
roles/sftpgo/files/hooks/anonymous-ftp-password-hook
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
if [[ "${SFTPGO_AUTHD_USERNAME:=}" != "anonymous" ]]; then
|
||||
cat <<_EOF
|
||||
{
|
||||
"status": 2,
|
||||
"to_verify": "${SFTPGO_AUTHD_PASSWORD:=}"
|
||||
}
|
||||
_EOF
|
||||
else
|
||||
cat <<_EOF
|
||||
{
|
||||
"status": 1
|
||||
}
|
||||
_EOF
|
||||
fi
|
Reference in New Issue
Block a user