| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* move database settings from models to setting
* update docs
* fix checkout pr
* fix tests
* fix lint
* remove unsupported tidb options
* correct wrong variable name
* remove tidb totally
|
|
|
| |
Signed-off-by: Tamal Saha <tamal@appscode.com>
|
|
|
|
|
|
|
|
|
| |
flag (#6822)
* Change verbose flag to avoid colliding with version flag
* Update docs
Signed-off-by: jolheiser <john.olheiser@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
When running the dump command, include the specific configuration file
provided as part of the backup. Currently we only zip up custom/ and this
misses the config file if it is somewhere else, like /etc/gitea/app.ini
Fixes #6034
|
|
|
|
|
|
|
| |
* support custom file name in `gitea dump` command
* simpler approach to handle default dump file name
in `gitea dump` command
|
| |
|
|
|
|
|
|
|
|
| |
* General refactor of the cmd package
* Address breakage in runCreateUser
* Place "common" functions into cmd.go
|
|
|
|
|
|
|
|
|
|
| |
* Set session and indexers' data files rel to AppDataPath
The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.
* fix bug
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* update xorm and fix dump
* catch database init error
* still use dumpTables
* fix dump bool type
* update vendor.json
|
| |
|
|
|
|
|
|
| |
* update xorm and dependencies vendor for feature to dump to other database
* fix golint
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
|
|
|
|
|
|
|
| |
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
|
|
|
|
| |
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Set dump file permission to 0600
* Typo
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Now, the dump cmd uses setting.CustomPath and setting.LogRootPath
instead of setting.WorkDir which was kind of broken if the gogs
binary was in a different directory than gogs data.
Additionally, the backup of setting.CustomPath directory is only done
if it exists.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using a tmp dir makes gogs dump more robust to concurrent runs.
It also permits an easier cleaning of the tmp files (gogs-db.sql and
gog-repo.zip) by just removing the tmp dir.
As a side effect, it partially fix bugs on workdir.
Previously, 'gogs dump' created the archives in the current directory,
and tried to include these archives from the directory where the
gogs binary lies.
ex: if gogs binary is in /usr/bin/gogs, and gogs dump is run from /tmp/,
/tmp/gog-repo.zip is created, but gogs dump tried to include
/usr/bin/gogs-repo.zip.
|
|
|
|
|
|
|
|
|
| |
The dump cmd did not check the return value of the z.AddFile or
z.AddDir when building the final archive.
It caused the dump command to succeed even if an error occurred.
The resulted dump archive could be corrupted/empty.
(errors could be various: removal by a concurrent process, disk full,
bugs in the dump cmd itself)
|
| |
|
| |
|
|
|
|
|
|
|
| |
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|