...
 
Commits (5)
# Deprecated
** This package is depracated! If you want to install Pleroma on yunohost, please use the community package available on https://github.com/YunoHost-Apps/pleroma_ynh **
The build of this package was started before the community package existed, but only finished later. I believe the community package is now maintained and stable enough to switch to that one myself, so I won't be maintaining this one much longer.
# Pleroma for YunoHost
- [Yunohost project](https://yunohost.org)
......@@ -7,22 +12,7 @@
Pleroma is an OStatus and Activity Pub-compatible social networking server written in Elixir, compatible with GNU Social and Mastodon. It is high-performance and can run on small devices like a briqueinternet/internet cube.
For clients it supports both the [GNU Social API with Qvitter extensions](https://twitter-api.readthedocs.io/en/latest/index.html) and the [Mastodon client API](https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md).
Client applications that are committed to supporting Pleroma:
* Mastalab (Android)
* Tusky (Android)
* Twidere (Android)
* Mast (iOS)
* Amaroq (iOS)
Client applications that are known to work well:
* Pawoo (Android + iOS)
* Tootdon (Android + iOS)
* Tootle (iOS)
* Whalebird (Windows + Mac + Linux)
[Client Applications for Pleroma](https://docs-develop.pleroma.social/clients.html)
## About this package
......@@ -30,18 +20,15 @@ Client applications that are known to work well:
* Changing the URL is technically impossible at this time due to the nature of federation
* There is no LDAP integration. Users on Pleroma are seperate from the yunohost users
* There is no integration with a mailbox and/or -service. This means that mails won't be sent from the application
* Changing the URL is technically impossible at this time due to the nature of federation
* Multiple installs are possible
* On installation you can choose to enable scopes on the Pleroma-FE
* You can choose to close regstrations on installation, but then you'll need to create invite tokens if you want others to join your instance. You can do this by accessing your yunohost server over ssh and run `cd /var/www/pleroma/pleroma/ && mix pleroma.user invite`. See: https://git.pleroma.social/pleroma/pleroma/wikis/Admin%20tasks
* On installation you'll need to chose a dedicated domain for Pleroma. You'll also be asked for a username and password for a user. This user will have admin and moderator rights
* Pleroma will be listed in the admin-panel under services, so you can stop and start the service there
* Postgresql will also be listed in the admin-panel
* You can upgrade your Pleroma instance by logging in over ssh as root and run `yunohost app upgrade pleroma_ynh -u https://gitlab.com/Spctrl/pleroma_ynh`
* Your current Pleroma version and other iformation can be found on `yourdomain.tld/api/v1/instance` and `yourdomain.tld/nodeinfo/2.0.json`
* If you're not afraid of the terminal, check out https://git.pleroma.social/pleroma/pleroma/wikis/home to see what more you can do with your awesome instance!
* If you're not afraid of the terminal, check out https://docs-develop.pleroma.social/readme.html to see what more you can do with your awesome instance!
## Contribute
......
......@@ -5,7 +5,7 @@
"description": {
"en": "Pleroma is an OStatus and Activity Pub-compatible social networking server written in Elixir, compatible with GNU Social and Mastodon. It is high-performance and can run on small devices like a briqueinternet/internet cube."
},
"version": "0.9.99~ynh1",
"version": "1.0.4~ynh2",
"url": "https://git.pleroma.social/pleroma/pleroma",
"license": "AGPL-3.0-only",
"maintainer": {
......
......@@ -10,7 +10,7 @@
# * ./manifest.json
# * ./scripts/install
# * ./ scripts/upgrade
new_version="v0.9.99"
new_version="v1.0.4"
#=================================================
# IMPORT GENERIC HELPERS
......@@ -159,7 +159,7 @@ pleroma_ynh_add_setting "config :pleroma, :rich_media" "enabled" "$(pleroma_ynh_
pleroma_ynh_add_setting "config :pleroma, :fe" "scope_options_enabled" "$(pleroma_ynh_int_to_boolstring $allow_scopes)" $settingsfile
pleroma_ynh_add_setting "config :pleroma, :fe" "formatting_options_enabled" "$(pleroma_ynh_int_to_boolstring $allow_format)" $settingsfile
# Thhese will work from 1.0 onwards
# These will work from 1.0 onwards
echo 'config :pleroma, :frontend_configurations,' >> "$settingsfile"
echo ' pleroma_fe: %{' >> $settingsfile
echo " scopeOptionsEnabled: $(pleroma_ynh_int_to_boolstring $allow_scopes)," >> "$settingsfile"
......@@ -173,7 +173,7 @@ echo '' >> "$settingsfile"
ynh_print_info "Adding user to the instance"
# We have to set the the pasword for the postgresql DB-user first, otherwise the task fails.
# We have to set the the password for the postgresql DB-user first, otherwise the task fails.
su - postgres -c "psql -c \"ALTER USER postgres PASSWORD 'postgres';\""
ynh_print_OFF
......@@ -240,4 +240,4 @@ sleep 10
systemctl reload nginx
systemctl restart $app
ynh_print_info "If you're not afraid of the terminal, check out https://git.pleroma.social/pleroma/pleroma/wikis/home to see what more you can do with your awesome instance!"
ynh_print_info "If you're not afraid of the terminal, check out https://docs-develop.pleroma.social/readme.html to see what more you can do with your awesome instance!"
......@@ -10,7 +10,7 @@
# * ./manifest.json
# * ./scripts/install
# * ./ scripts/upgrade
new_version="v0.9.99"
new_version="v1.0.4"
#=================================================
# IMPORT GENERIC HELPERS
......@@ -132,6 +132,12 @@ systemctl stop $app
# TODO: Keep track of reverted files instead of hard reset everything
su - $app -c "cd $final_path/pleroma;git reset --hard;git fetch --all --tags --prune;git checkout master;git checkout tags/$new_version;mix local.hex --force;MIX_ENV=prod mix deps.get;MIX_ENV=prod mix ecto.migrate;"
# post-upgrade. This is a custom script where people can do post-upgrade stuff
touch $final_path/post-upgrade.sh
chmod +x $final_path/post-upgrade.sh
chown -R $app: $final_path/post-upgrade.sh
su - $app -c "$final_path/post-upgrade.sh"
#=================================================
# RESTART PLEROMA
#=================================================
......