github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestFTPVsftpd (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  NAME=vsftpd
     6  USER=rclone
     7  PASS=TiffedRestedSian4
     8  
     9  . $(dirname "$0")/docker.bash
    10  
    11  start() {
    12      docker run --rm -d --name $NAME \
    13             -e "FTP_USER=rclone" \
    14             -e "FTP_PASS=$PASS" \
    15             fauria/vsftpd
    16  
    17      echo type=ftp
    18      echo host=$(docker_ip)
    19      echo user=$USER
    20      echo pass=$(rclone obscure $PASS)
    21      echo _connect=$(docker_ip):21
    22  }
    23  
    24  . $(dirname "$0")/run.bash