1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

Merge pull request #10 from YunoHost-Apps/testing

Cleanup
This commit is contained in:
yalh76 2019-04-17 01:26:51 +02:00 committed by GitHub
commit 3936730ed1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 26 deletions

View file

@ -7,15 +7,6 @@
> *This package allow you to install Mobilizon quickly and simply on a YunoHost server.
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
## Important
1. **Mobilizon** is in early development, like an Alpha, all functionalities are not available
1. **Mobilizon** require a dedicated **root domain**, eg. mobilizon.domain.tld
1. Even if requested during installation: admin, language and password variables are not used
1. When your mobilizon instance is installed, you need to register.
1. When registered to be admin you have to manually goes in PostgreSQL, database $app, table users, and change the role value to `administrator` instead of `user` (other role available: `moderator`)
1. Admin Dashboard is still not implemented
## Overview
MobiliZon is your federated organization and mobilization platform. Supported by [Framasoft](https://framasoft.org/en/)
@ -25,6 +16,15 @@ Mobilizon is a tool designed to create platforms for managing communities and ev
**Shipped version:** 0.1.0-2019-04-11
## Important
1. **Mobilizon** is in early development, like an Alpha, all functionalities are not available
1. **Mobilizon** require a dedicated **root domain**, eg. mobilizon.domain.tld
1. Even if requested during installation: admin, language and password variables are not used
1. When your mobilizon instance is installed, you need to register.
1. When registered to be admin you have to manually goes in PostgreSQL, database $app, table users, and change the role value to `administrator` instead of `user` (other role available: `moderator`)
1. Admin Dashboard is still not implemented
## Screenshots
![Capture](https://user-images.githubusercontent.com/30271971/56023339-ea65aa00-5d0d-11e9-8b27-0120de231920.PNG)

View file

@ -16,7 +16,7 @@
upgrade=1
backup_restore=1
multi_instance=1
incorrect_path=1
incorrect_path=0
port_already_use=0
change_url=0
;;; Levels

View file

@ -21,5 +21,4 @@ MOBILIZON_DATABASE_DBNAME="__DB_NAME__"
MOBILIZON_DATABASE_HOST="localhost"
MOBILIZON_DATABASE_PORT="5432"
MOBILIZON_LOGLEVEL="info"

View file

@ -24,6 +24,5 @@ PrivateDevices=false
; Ensures that the service process and all its children can never gain new privileges through execve().
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target

View file

@ -192,13 +192,6 @@ pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix deps.get
sudo -u "$app" MIX_ENV=prod mix ecto.migrate
sudo -u "$app" MIX_ENV=prod mix phx.digest
# Add user
# sudo -u "$app" MIX_ENV=prod mix mobilizon.user new "$admin" "$admin_email" --password "$password" --moderator --admin -y
#Generate key pair
# sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.exs"
# ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.exs"
popd
curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz --output GeoLite2-City.tar.gz -s && tar zxf GeoLite2-City.tar.gz && mkdir -p /usr/share/GeoIP && mv GeoLite2-City_*/GeoLite2-City.mmdb $final_path/$app/priv/data/GeoLite2-City.mmdb

View file

@ -171,13 +171,6 @@ pushd $final_path/$app
sudo -u "$app" MIX_ENV=prod mix deps.get
sudo -u "$app" MIX_ENV=prod mix ecto.migrate
sudo -u "$app" MIX_ENV=prod mix phx.digest
# Add user
# sudo -u "$app" MIX_ENV=prod mix mobilizon.user new "$admin" "$admin_email" --password "$password" --moderator --admin -y
#Generate key pair
# sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.exs"
# ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.exs"
popd
ynh_backup_if_checksum_is_different "$config"