aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorericgaspar <junk.eg@free.fr>2021-12-08 11:14:48 +0100
committerericgaspar <junk.eg@free.fr>2021-12-08 11:14:48 +0100
commit3fb2b81bd6bef83b169f3918ace4234f7d6d3923 (patch)
tree6e2a8a2c365c6f171a0d3774d3375d06c472cd1a
parent0e996b8b555fa556ce4fc67dfac2890ef8a028d2 (diff)
downloadmastodon_ynh-3fb2b81bd6bef83b169f3918ace4234f7d6d3923.tar.gz
mastodon_ynh-3fb2b81bd6bef83b169f3918ace4234f7d6d3923.tar.bz2
mastodon_ynh-3fb2b81bd6bef83b169f3918ace4234f7d6d3923.zip
Fix
-rw-r--r--check_process36
-rw-r--r--doc/DESCRIPTION.md1
-rw-r--r--doc/DESCRIPTION_fr.md1
-rw-r--r--doc/DISCLAIMER.md38
-rw-r--r--doc/DISCLAIMER_fr.md47
-rw-r--r--doc/screenshots/mastodon.pngbin0 -> 249637 bytes
-rw-r--r--manifest.json7
-rw-r--r--scripts/install4
-rw-r--r--scripts/restore8
9 files changed, 102 insertions, 40 deletions
diff --git a/check_process b/check_process
index e0a7879..0216939 100644
--- a/check_process
+++ b/check_process
@@ -12,46 +12,14 @@
setup_private=1
setup_public=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
- #upgrade=1 from_commit=efbdbb05350b820c6e59a7bbbf70f57cf679fff8
+ upgrade=1 from_commit=efbdbb05350b820c6e59a7bbbf70f57cf679fff8
backup_restore=1
- multi_instance=1
+ multi_instance=0
change_url=0
;;; Options
Email=yalh@yahoo.com
Notification=all
;;; 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
name=3.4.1~ynh1
diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md
new file mode 100644
index 0000000..72981f6
--- /dev/null
+++ b/doc/DESCRIPTION.md
@@ -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. \ No newline at end of file
diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md
new file mode 100644
index 0000000..bb225b2
--- /dev/null
+++ b/doc/DESCRIPTION_fr.md
@@ -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.
diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md
new file mode 100644
index 0000000..7966fa5
--- /dev/null
+++ b/doc/DISCLAIMER.md
@@ -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.
diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md
new file mode 100644
index 0000000..9218cd3
--- /dev/null
+++ b/doc/DISCLAIMER_fr.md
@@ -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.
diff --git a/doc/screenshots/mastodon.png b/doc/screenshots/mastodon.png
new file mode 100644
index 0000000..f248fd5
--- /dev/null
+++ b/doc/screenshots/mastodon.png
Binary files differ
diff --git a/manifest.json b/manifest.json
index c1defdf..fd4bc14 100644
--- a/manifest.json
+++ b/manifest.json
@@ -8,6 +8,13 @@
},
"version": "3.4.4~ynh1",
"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",
"maintainer": {
"name": "yalh76"
diff --git a/scripts/install b/scripts/install
index 748fcb1..f2ae407 100644
--- a/scripts/install
+++ b/scripts/install
@@ -149,8 +149,8 @@ ynh_script_progression --message="Installing Ruby..."
pushd "$final_path/live"
ynh_use_ruby
- ynh_gem update --system
- ynh_gem install bundler --no-document
+ ynh_exec_warn_less ynh_gem update --system
+ ynh_exec_warn_less ynh_gem install bundler --no-document
popd
#=================================================
diff --git a/scripts/restore b/scripts/restore
index 68ff2b0..a80637c 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -101,8 +101,8 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
#=================================================
ynh_script_progression --message="Reinstalling dependencies..."
-ynh_install_app_dependencies $pkg_dependencies
-ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
+ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
+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_ruby --ruby_version=$RUBY_VERSION
@@ -113,8 +113,8 @@ ynh_script_progression --message="Installing Ruby..."
pushd "$final_path/live"
ynh_use_ruby
- ynh_gem update --system
- ynh_gem install bundler --no-document
+ ynh_exec_warn_less ynh_gem update --system
+ ynh_exec_warn_less ynh_gem install bundler --no-document
popd
#=================================================