mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
gitea
This commit is contained in:
parent
66a1ef6266
commit
065155c885
3 changed files with 1 additions and 4 deletions
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue