Giter VIP home page Giter VIP logo

Comments (4)

sofixa avatar sofixa commented on July 23, 2024

Indeed, it would be a good idea to document this.

I just installed Gogs via your formula, and i have the login page, but have no idea what the admin user/password are.

from gogs-formula.

sofixa avatar sofixa commented on July 23, 2024

From what i gather, the INSTALL_LOCK variable in app.ini should be set to False so post-install you can setup and configure the admin user?

from gogs-formula.

jerrykan avatar jerrykan commented on July 23, 2024

@sofixa yeah pretty much. The following is a full list of steps you can follow:

  • set the gogs config directory to be world writable so the installer can write to it:
chmod 777 /etc/gogs/
  • edit the /etc/gogs/app.ini file to enable the installer:
30c30
< INSTALL_LOCK = true
---
> INSTALL_LOCK = false
  • browse to http://<hostname>/install to run the installer and set up an admin account.
  • reset the gogs config directory to correct permissions:
chmod 755 /etc/gogs/
  • run salt again to reconfigure the /etc/gogs/app.ini file:
salt-call state.apply --output-diff

Now I think about it the formula should probably handle re-setting the correct directory permissions. I'll have a look at fixing that up.


Alternatively you could manually create the admin user by inserting a new row in the user table in the database. Some details on this can be found in the following puppet gogs modules:

from gogs-formula.

jerrykan avatar jerrykan commented on July 23, 2024

Documented in 1e92f45

from gogs-formula.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.