This commit is contained in:
qiaofeng1227 2023-09-23 12:03:09 +08:00
parent 5eb133e5b5
commit 9a666b5797
2 changed files with 1 additions and 2 deletions

View file

@ -3,5 +3,4 @@ FROM gitea/gitea:1.20.4
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="1.20.4"
COPY ./src/s6/user /etc/s6/user
RUN chmod -R 755 /etc/s6/user

View file

@ -33,5 +33,5 @@ fi
password=$(grep -o "generated random password is '[^']*" /tmp/credential | sed "s/generated random password is '//")
echo "Save to credential"
json="{\"username\":\"$username\",\"password\":\"$password\"}"
json="{\"username\":\"$admin_username\",\"password\":\"$password\",\"email\":\"$admin_email\"}"
echo "$json" > "$cred_path"