2019-05-17 22:41:50 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
############ MASQUERADE
|
|
|
|
|
|
|
|
MASQUERADE=${MASQUERADE:-127.0.0.1}
|
|
|
|
echo "MasqueradeAddress ${MASQUERADE}" > /etc/proftpd/conf.d/masquerade.conf
|
|
|
|
|
|
|
|
############ AUTH
|
|
|
|
|
|
|
|
[ ! -f /auth/passwd ] && touch /auth/passwd
|
|
|
|
|
|
|
|
chmod 0600 /auth/passwd
|
|
|
|
chmod 0700 /auth
|
|
|
|
|
|
|
|
############ TLS
|
|
|
|
|
|
|
|
TLS_CERT=${TLS_CERT:-/certs/cert.pem}
|
|
|
|
TLS_KEY=${TLS_KEY:-/certs/privkey.pem}
|
|
|
|
TLS_CHAIN=${TLS_CHAIN:-/certs/chain.pem}
|
|
|
|
|
2019-05-17 23:20:52 +00:00
|
|
|
cat $TLS_CERT > /etc/proftpd/cert.pem
|
|
|
|
cat $TLS_KEY > /etc/proftpd/privkey.pem
|
|
|
|
cat $TLS_CHAIN > /etc/proftpd/chain.pem
|
2019-05-17 22:41:50 +00:00
|
|
|
|
|
|
|
############ START
|
|
|
|
|
|
|
|
proftpd -n
|