mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
commit
3936730ed1
6 changed files with 10 additions and 26 deletions
18
README.md
18
README.md
|
@ -7,15 +7,6 @@
|
||||||
> *This package allow you to install Mobilizon quickly and simply on a YunoHost server.
|
> *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.*
|
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
|
## Overview
|
||||||
MobiliZon is your federated organization and mobilization platform. Supported by [Framasoft](https://framasoft.org/en/)
|
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
|
**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
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
upgrade=1
|
upgrade=1
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
incorrect_path=1
|
incorrect_path=0
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
change_url=0
|
change_url=0
|
||||||
;;; Levels
|
;;; Levels
|
||||||
|
|
|
@ -21,5 +21,4 @@ MOBILIZON_DATABASE_DBNAME="__DB_NAME__"
|
||||||
MOBILIZON_DATABASE_HOST="localhost"
|
MOBILIZON_DATABASE_HOST="localhost"
|
||||||
MOBILIZON_DATABASE_PORT="5432"
|
MOBILIZON_DATABASE_PORT="5432"
|
||||||
|
|
||||||
|
|
||||||
MOBILIZON_LOGLEVEL="info"
|
MOBILIZON_LOGLEVEL="info"
|
|
@ -24,6 +24,5 @@ PrivateDevices=false
|
||||||
; Ensures that the service process and all its children can never gain new privileges through execve().
|
; Ensures that the service process and all its children can never gain new privileges through execve().
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -192,13 +192,6 @@ pushd $final_path/$app
|
||||||
sudo -u "$app" MIX_ENV=prod mix deps.get
|
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 ecto.migrate
|
||||||
sudo -u "$app" MIX_ENV=prod mix phx.digest
|
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
|
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
|
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
|
||||||
|
|
|
@ -171,13 +171,6 @@ pushd $final_path/$app
|
||||||
sudo -u "$app" MIX_ENV=prod mix deps.get
|
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 ecto.migrate
|
||||||
sudo -u "$app" MIX_ENV=prod mix phx.digest
|
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
|
popd
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different "$config"
|
ynh_backup_if_checksum_is_different "$config"
|
||||||
|
|
Loading…
Add table
Reference in a new issue