Copy conf dir for backup not move it away.
Add configuration parameters 'FSCharset' and 'PureDB'.
This commit is contained in:
parent
a8070cc9da
commit
a45b405e06
@ -106,7 +106,7 @@ fi
|
||||
|
||||
echononl " Backup existing Configuration Directory"
|
||||
if [[ -d "/etc/pure-ftpd/conf" ]]; then
|
||||
mv /etc/pure-ftpd/conf /etc/pure-ftpd/conf.$(date +%Y-%m-%d-%H%M) > /dev/null 2> "$tmp_err_msg"
|
||||
cp -a /etc/pure-ftpd/conf /etc/pure-ftpd/conf.$(date +%Y-%m-%d-%H%M) > /dev/null 2> "$tmp_err_msg"
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
echo_ok
|
||||
else
|
||||
@ -147,10 +147,18 @@ if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
error "$(cat $tmp_err_msg)"
|
||||
fi
|
||||
echo "UTF-8" > /etc/pure-ftpd/conf/FSCharset
|
||||
if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
fi
|
||||
echo "80" > /etc/pure-ftpd/conf/MaxDiskUsage
|
||||
if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
fi
|
||||
echo 'ALL:!aNULL:!SSLv3' > /etc/pure-ftpd/conf/TLSCipherSuite
|
||||
if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
fi
|
||||
echo "1" > /etc/pure-ftpd/conf/TLS
|
||||
if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
@ -195,6 +203,7 @@ echo "no" > /etc/pure-ftpd/conf/PAMAuthentication
|
||||
if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
fi
|
||||
echo "/etc/pure-ftpd/pureftpd.pdb" > /etc/pure-ftpd/conf/PureDB
|
||||
if $installation_failed ; then
|
||||
echo_failed
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user