1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

Fix duplication action in startup.sh

This commit is contained in:
Colin
2015-03-03 23:21:09 +08:00
parent d3564af171
commit 76bb5839be
+4 -4
View File
@@ -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