Comments (4)
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.
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.
@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.
Documented in 1e92f45
from gogs-formula.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gogs-formula.