Parcourir la source

Merge branch 'migrate-gogs'

DricomDragon il y a 5 ans
Parent
commit
f1c61f6038
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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/`