浏览代码

Merge branch 'migrate-gogs'

DricomDragon 5 年之前
父节点
当前提交
f1c61f6038
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Guides/gogs.md

+ 3 - 1
Guides/gogs.md

@@ -15,7 +15,7 @@ Use command `./gogs help` to list gogs commands.
 
 `$ sudo -u postgres psql`
 
-`postgres=# CREATE ROLE gogs_app WITH CREATEDB LOGIN PASSWORD 'VerySecretPassword';`
+`postgres=# CREATE ROLE gogs_app WITH CREATEDB LOGIN ENCRYPTED PASSWORD 'VerySecretPassword';`
 
 ### Create gogs database
 
@@ -80,6 +80,8 @@ Gogs natively manages backups. Prefer to use gogs tools instead of _squared whee
 
 `$ ./gogs restore --help`
 
+**Beware** : please ensure that the user `gogs_app` has the same password on both instances ! You can change the password after the migration by using `ALTER ROLE gogs_app ENCRYPTED PASSWORD 'NewPassword';` and by changing the db password in `gogs/custom/conf/app.ini`.
+
 ### Repositories
 
 `/home/gituser/gogs/gogs-repositories/`