16 lines
358 B
Bash
16 lines
358 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Many thanks to John Fink <john.fink@gmail.com> for the
|
||
|
# inspiration and to his great work on docker-wordpress'
|
||
|
|
||
|
# let's create a user to ssh into
|
||
|
SSH_USERPASS=`pwgen -c -n -1 8`
|
||
|
mkdir /home/user
|
||
|
useradd -G sudo -d /home/user user
|
||
|
chown user /home/user
|
||
|
echo user:$SSH_USERPASS | chpasswd
|
||
|
echo ssh user password: $SSH_USERPASS
|
||
|
|
||
|
supervisord -n
|
||
|
|