source: npl/fileserver/vsftpd/post.vsftpd

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 720 bytes
Line 
1#!/bin/bash
2#nieuwe configfile over oude heen zetten
3#gaat automatisch:
4#svc -d /service/vsftpd
5#edwin: NIET doen, gaat automatisch:
6#mv /etc/vsftpd.conf /etc/vsftpd.conf-oldconfig-delete-me
7#mv /etc/vsftpd.conf.new /etc/vsftpd.conf
8
9#ssl/tls update in config:
10if ! grep ssl_enable /etc/vsftpd.conf; then
11cat  >>/etc/vsftpd.conf <<EOF
12
13#SSL and TLS support
14ssl_enable=yes
15rsa_cert_file=/usr/webint/ssl/server.crt
16rsa_private_key_file=/usr/webint/ssl/server.pem
17ssl_sslv2=yes
18ssl_sslv3=yes
19ssl_tlsv1=yes
20force_local_data_ssl=no
21force_local_logins_ssl=no
22EOF
23fi
24if [ ! -e /home/system/vsftpd.chroot_list ]; then
25touch /home/system/vsftpd/vsftpd.chroot_list
26fi
27
28#niet doen, gaat automatisch
29#svc -u /service/vsftpd
30exit 0
Note: See TracBrowser for help on using the repository browser.