... | ... | @@ -134,6 +134,8 @@ postgresql: &postgresql |
|
|
- podmin_email: "your admin email"
|
|
|
|
|
|
|
|
|
[Source](https://wiki.diasporafoundation.org/Installation/Debian/Jessie)
|
|
|
|
|
|
## Création des unités systemd:
|
|
|
|
|
|
Créer **/etc/systemd/system/diaspora.target**
|
... | ... | @@ -298,3 +300,20 @@ Restart nginx |
|
|
```
|
|
|
systemctl restart nginx
|
|
|
```
|
|
|
|
|
|
## Créer un administrateur
|
|
|
|
|
|
Aller sur le pod diaspora avec un navigateur web et créer un utilisateur via le formulaire d'inscription
|
|
|
|
|
|
Ensuite, sur le serveur :
|
|
|
|
|
|
```
|
|
|
# su diaspora -s /bin/bash
|
|
|
$ cd ~/diaspora
|
|
|
$ RAILS_ENV=production bundle exec rails console
|
|
|
> Role.add_admin User.where(username: "the_admin_username").first.person
|
|
|
|
|
|
```
|
|
|
|
|
|
[Gesiton des rôles](https://wiki.diasporafoundation.org/FAQ_for_pod_maintainers#What_are_roles_and_how_do_I_use_them.3F_.2F_Make_yourself_an_admin_or_assign_moderators)
|
|
|
|