Merge pull request #9 from ColinHuang/master
Fix duplication action in startup.sh
This commit is contained in:
commit
fc314ed81c
1 changed files with 4 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir /var/run/sshd
|
||||
mkdir -p /var/run/sshd
|
||||
|
||||
# create an ubuntu user
|
||||
PASS=`pwgen -c -n -1 10`
|
||||
# PASS=`pwgen -c -n -1 10`
|
||||
PASS=ubuntu
|
||||
echo "User: ubuntu Pass: $PASS"
|
||||
useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
|
||||
# echo "Username: ubuntu Password: $PASS"
|
||||
id -u ubuntu &>/dev/null || useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
|
||||
echo "ubuntu:$PASS" | chpasswd
|
||||
|
||||
/usr/bin/supervisord -c /supervisord.conf
|
||||
|
|
|
|||
Loading…
Reference in a new issue