mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Fix
This commit is contained in:
parent
0e996b8b55
commit
3fb2b81bd6
9 changed files with 102 additions and 40 deletions
|
@ -12,46 +12,14 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
# 3.1.2~ynh2
|
|
||||||
#upgrade=1 from_commit=7e1f4c2dee5f2c8374686aea62f4648cdf2722c3
|
|
||||||
# 3.1.2~ynh3
|
|
||||||
#upgrade=1 from_commit=6b30109fc986d83166b1805ec3ad7e28200e3743
|
|
||||||
# 3.1.2~ynh4
|
|
||||||
#upgrade=1 from_commit=d3df899e0a99a63ee1cf7ad845cc513aeaaf30ef
|
|
||||||
# 3.2.0~ynh1
|
|
||||||
#upgrade=1 from_commit=bde14cc4496445fdfed4616ac44fc9527c8369fd
|
|
||||||
# 3.2.1~ynh1
|
|
||||||
#upgrade=1 from_commit=248b717f373f3c82bdb19c33cf20980494608697
|
|
||||||
# 3.2.1~ynh2
|
|
||||||
#upgrade=1 from_commit=74908bf3e70c134bc838c7db3ae8b5aa0938cd75
|
|
||||||
# 3.2.2~ynh1
|
|
||||||
#upgrade=1 from_commit=a233ccc644d97aa89756fac9f0ce68c98d81d27c
|
|
||||||
# 3.3.0~ynh1
|
|
||||||
#upgrade=1 from_commit=a7eb98db3fac0697b923072dcd78c1ca04bf0a12
|
|
||||||
# 3.4.1~ynh1
|
# 3.4.1~ynh1
|
||||||
#upgrade=1 from_commit=efbdbb05350b820c6e59a7bbbf70f57cf679fff8
|
upgrade=1 from_commit=efbdbb05350b820c6e59a7bbbf70f57cf679fff8
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=0
|
||||||
change_url=0
|
change_url=0
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=yalh@yahoo.com
|
Email=yalh@yahoo.com
|
||||||
Notification=all
|
Notification=all
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=7e1f4c2dee5f2c8374686aea62f4648cdf2722c3
|
|
||||||
name=3.1.2~ynh2
|
|
||||||
; commit=6b30109fc986d83166b1805ec3ad7e28200e3743
|
|
||||||
name=3.1.2~ynh3
|
|
||||||
; commit=d3df899e0a99a63ee1cf7ad845cc513aeaaf30ef
|
|
||||||
name=3.1.2~ynh4
|
|
||||||
; commit=bde14cc4496445fdfed4616ac44fc9527c8369fd
|
|
||||||
name=3.2.0~ynh1
|
|
||||||
; commit=248b717f373f3c82bdb19c33cf20980494608697
|
|
||||||
name=3.2.1~ynh1
|
|
||||||
; commit=74908bf3e70c134bc838c7db3ae8b5aa0938cd75
|
|
||||||
name=3.2.1~ynh2
|
|
||||||
; commit=a233ccc644d97aa89756fac9f0ce68c98d81d27c
|
|
||||||
name=3.2.2~ynh1
|
|
||||||
; commit=a7eb98db3fac0697b923072dcd78c1ca04bf0a12
|
|
||||||
name=3.3.0~ynh1
|
|
||||||
; commit=efbdbb05350b820c6e59a7bbbf70f57cf679fff8
|
; commit=efbdbb05350b820c6e59a7bbbf70f57cf679fff8
|
||||||
name=3.4.1~ynh1
|
name=3.4.1~ynh1
|
||||||
|
|
1
doc/DESCRIPTION.md
Normal file
1
doc/DESCRIPTION.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Mastodon is a free, open-source microblogging social network. It is a decentralized alternative to commercial platforms like Twitter and avoids the risks of a single company monopolizing your communication for commercial purposes.
|
1
doc/DESCRIPTION_fr.md
Normal file
1
doc/DESCRIPTION_fr.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Mastodon est un réseau social de microblog auto-hébergé et open source. C'est une alternative décentralisée aux plates-formes commerciales comme Twitter. Mastodon évite ainsi les risques qu'une seule société monopolise votre communication à des fins commerciales.
|
38
doc/DISCLAIMER.md
Normal file
38
doc/DISCLAIMER.md
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
## Important points to read before installing
|
||||||
|
|
||||||
|
1. **Mastodon** require a dedicated **root domain**, eg. mastodon.domain.tld
|
||||||
|
1. The user choosen during the installation is automatically created in Mastodon with admin rights
|
||||||
|
1. At the end of the installation a mail is sent to the user with the automatically generated password
|
||||||
|
1. It seems important to close the inscriptions for your Mastodon, so that it remains a private body. We invite you to block remote malicious instances from the administration interface. You can also add text on your home page.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Install
|
||||||
|
|
||||||
|
#### Using *screen* in case of disconnect
|
||||||
|
```
|
||||||
|
$ sudo apt-get install screen
|
||||||
|
$ screen
|
||||||
|
$ sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git
|
||||||
|
```
|
||||||
|
Recover after disconnect:
|
||||||
|
```
|
||||||
|
$ screen -d
|
||||||
|
$ screen -r
|
||||||
|
```
|
||||||
|
|
||||||
|
### Update
|
||||||
|
|
||||||
|
#### Using *screen* highly recommended
|
||||||
|
|
||||||
|
`$ sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh --debug `
|
||||||
|
|
||||||
|
### Administrate with tooctl
|
||||||
|
|
||||||
|
`$ (cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl --help)`
|
||||||
|
|
||||||
|
## YunoHost specific features
|
||||||
|
|
||||||
|
#### Multi-users support
|
||||||
|
|
||||||
|
LDAP authentication is activated. All YunoHost users can authenticate.
|
47
doc/DISCLAIMER_fr.md
Normal file
47
doc/DISCLAIMER_fr.md
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
## Points importants à lire avant l'installation
|
||||||
|
|
||||||
|
1. **Mastodon** nécessite un **nom de domaine** dédié, par exemple : mastodon.domain.tld
|
||||||
|
1. L'utilisateur sélectionné pendant l'installation sera créé automatiquement dans Mastodon avec des droits d'administration.
|
||||||
|
1. À la fin de l'installation, un mail est envoyé à cet utilisateur avec un mot de passe généré automatiquement.
|
||||||
|
1. Pour que votre instance Mastodon reste privée, il est important de fermer les inscriptions. Nous vous invitons à bloquer les instances distantes indésirables depuis l'interface d'administration. Vous pouvez également ajouter un texte sur votre page d'accueil dans l'administration.
|
||||||
|
|
||||||
|
## Captures d'écran
|
||||||
|
|
||||||
|
![](https://framalibre.org/sites/default/files/mastodon.png)
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
#### Utilisation de *screen* en cas de déconnection
|
||||||
|
```
|
||||||
|
$ sudo apt-get install screen
|
||||||
|
$ screen
|
||||||
|
$ sudo yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh.git
|
||||||
|
```
|
||||||
|
Récupérer l'installation après une deconnection :
|
||||||
|
```
|
||||||
|
$ screen -d
|
||||||
|
$ screen -r
|
||||||
|
```
|
||||||
|
L'utilisateur admin est créé automatiquement comme : user@domain.tld
|
||||||
|
|
||||||
|
### Mise à jour
|
||||||
|
|
||||||
|
#### Utilisation de *screen* fortement recommandée
|
||||||
|
|
||||||
|
`$ sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh --debug `
|
||||||
|
|
||||||
|
### Administration avec tooctl
|
||||||
|
|
||||||
|
`$ (cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/tootctl --help)`
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* Documentation officielle : https://docs.joinmastodon.org/
|
||||||
|
|
||||||
|
## Caractéristiques spécifiques YunoHost
|
||||||
|
|
||||||
|
#### Support multi-utilisateur
|
||||||
|
|
||||||
|
L'authentification LDAP est activée. Tous les utilisateurs YunoHost peuvent s'authentifier.
|
BIN
doc/screenshots/mastodon.png
Normal file
BIN
doc/screenshots/mastodon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
|
@ -8,6 +8,13 @@
|
||||||
},
|
},
|
||||||
"version": "3.4.4~ynh1",
|
"version": "3.4.4~ynh1",
|
||||||
"url": "https://github.com/tootsuite/mastodon",
|
"url": "https://github.com/tootsuite/mastodon",
|
||||||
|
"upstream": {
|
||||||
|
"license": "AGPL-3.0-or-later",
|
||||||
|
"website": "https://joinmastodon.org/",
|
||||||
|
"demo": "https://joinmastodon.org/",
|
||||||
|
"admindoc": "https://docs.joinmastodon.org/",
|
||||||
|
"code": "https://github.com/tootsuite/mastodon"
|
||||||
|
},
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "yalh76"
|
"name": "yalh76"
|
||||||
|
|
|
@ -149,8 +149,8 @@ ynh_script_progression --message="Installing Ruby..."
|
||||||
|
|
||||||
pushd "$final_path/live"
|
pushd "$final_path/live"
|
||||||
ynh_use_ruby
|
ynh_use_ruby
|
||||||
ynh_gem update --system
|
ynh_exec_warn_less ynh_gem update --system
|
||||||
ynh_gem install bundler --no-document
|
ynh_exec_warn_less ynh_gem install bundler --no-document
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -101,8 +101,8 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling dependencies..."
|
ynh_script_progression --message="Reinstalling dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
ynh_install_ruby --ruby_version=$RUBY_VERSION
|
ynh_install_ruby --ruby_version=$RUBY_VERSION
|
||||||
|
|
||||||
|
@ -113,8 +113,8 @@ ynh_script_progression --message="Installing Ruby..."
|
||||||
|
|
||||||
pushd "$final_path/live"
|
pushd "$final_path/live"
|
||||||
ynh_use_ruby
|
ynh_use_ruby
|
||||||
ynh_gem update --system
|
ynh_exec_warn_less ynh_gem update --system
|
||||||
ynh_gem install bundler --no-document
|
ynh_exec_warn_less ynh_gem install bundler --no-document
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue