This commit is contained in:
qiaofeng1227 2023-09-26 13:58:25 +08:00
parent 66a1ef6266
commit 065155c885
3 changed files with 1 additions and 4 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

@ -2,5 +2,5 @@
[[ -f ./setup ]] && source ./setup
pushd /root >/dev/null
exec su-exec root /bin/echo ""
exec s6-svc -D /etc/s6/user
popd

View file

@ -25,7 +25,6 @@ admin_email="help@websoft9.com"
if [ -e "$cred_path" ]; then
echo "File $cred_path exists. Exiting script."
s6-svc -D /etc/s6/user
exit 0
fi
@ -47,4 +46,3 @@ password=$(grep -o "generated random password is '[^']*" /tmp/credential | sed "
echo "Save to credential"
json="{\"username\":\"$admin_username\",\"password\":\"$password\",\"email\":\"$admin_email\"}"
echo "$json" > "$cred_path"
s6-svc -D /etc/s6/user