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

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  NAME=proftpd
     6  USER=rclone
     7  PASS=RaidedBannedPokes5
     8  
     9  . $(dirname "$0")/docker.bash
    10  
    11  start() {
    12      docker run --rm -d --name $NAME \
    13             -e "FTP_USERNAME=rclone" \
    14             -e "FTP_PASSWORD=$PASS" \
    15             hauptmedia/proftpd
    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