A painless self-hosted Git service
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
350 B

  1. #!/bin/bash
  2. create-admin () {
  3. container=$(docker container ls -f "name=${STACK_NAME}_gitea" -q)
  4. docker exec "$container" \
  5. gitea \
  6. --custom-path /data/gitea/ \
  7. --config /data/gitea/conf/app.ini \
  8. admin \
  9. create-user \
  10. --admin \
  11. --username autonomic \
  12. --password autonomic \
  13. --email autonomic@autonomic.zone
  14. }