Welcome to mirror list, hosted at ThFree Co, Russian Federation.

launch « ftp-php7.0 - github.com/nextcloud/docker-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae0850543623be1c8c34a5fa311ce0c6416fc1c6 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash -e

USERNAME=test
PASSWORD=12345

echo Setting credentials to $USERNAME:$PASSWORD
PASSWORD=$(perl -e 'print crypt($ARGV[0], "password")' $PASSWORD)
useradd --shell /bin/sh --create-home --password $PASSWORD $USERNAME
chown -R $USERNAME:$USERNAME /ftp
exec proftpd --nodaemon