diff --git a/docker/w9gitea/init.sh b/docker/w9gitea/init.sh index 24c7bd05..fe03252c 100644 --- a/docker/w9gitea/init.sh +++ b/docker/w9gitea/init.sh @@ -7,6 +7,9 @@ su -c ' # Read credential from tmp username=$(grep -o "New user '[^']*" /tmp/credential | sed "s/New user '//") +if [ -z "$username" ]; then + username="websoft9" +fi password=$(grep -o "generated random password is '[^']*" /tmp/credential | sed "s/generated random password is '//") # Create template credential json="{\"username\":\"$username\",\"password\":\"$password\"}"