From 569e84287c56ce2c8e06b568e4cc4005dac1b344 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 15 Apr 2019 21:14:53 +0200 Subject: [PATCH 1/5] disable malformed path check --- check_process | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_process b/check_process index 6281cc6..4c26124 100644 --- a/check_process +++ b/check_process @@ -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 From 7e1499a9ec00882a32fbc5425ff2a85390703c5e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 15 Apr 2019 21:16:33 +0200 Subject: [PATCH 2/5] move to CI dev --- pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull_request_template.md b/pull_request_template.md index c9bfb76..eac40c3 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -17,7 +17,7 @@ - [ ] **Approval (LGTM)** *Code review and approval have to be from a member of @YunoHost/apps group* - **CI succeeded** : -[![Build Status](https://ci-apps-hq.yunohost.org/jenkins/job/mobilizon_ynh%20-BRANCH-/badge/icon)](https://ci-apps-hq.yunohost.org/jenkins/job/mobilizon_ynh%20-BRANCH-/) +[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/mobilizon_ynh%20-BRANCH-/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/mobilizon_ynh%20-BRANCH-/) *Please replace '-BRANCH-' in this link by the name of the branch used.* *If the PR is from a forked repository. Please provide public results from package_check.* When the PR is marked as ready to merge, you have to wait for 3 days before really merging it. From c916e0c6767a8dbeae2969a3bdc49c463c78055f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 15 Apr 2019 23:19:39 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f892852..7858100 100644 --- a/README.md +++ b/README.md @@ -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) From 3df836e42282686f128bb7833c078af76f2513f4 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 16 Apr 2019 00:30:39 +0200 Subject: [PATCH 4/5] spacing --- conf/.env | 1 - conf/systemd.service | 1 - 2 files changed, 2 deletions(-) diff --git a/conf/.env b/conf/.env index 620563f..a9d9249 100644 --- a/conf/.env +++ b/conf/.env @@ -21,5 +21,4 @@ MOBILIZON_DATABASE_DBNAME="__DB_NAME__" MOBILIZON_DATABASE_HOST="localhost" MOBILIZON_DATABASE_PORT="5432" - MOBILIZON_LOGLEVEL="info" \ No newline at end of file diff --git a/conf/systemd.service b/conf/systemd.service index 61f9e15..a73916c 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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 From 53a681eaf15a5ad918e4ed5dd352b3f78bd0508d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 16 Apr 2019 00:32:05 +0200 Subject: [PATCH 5/5] Cleanup --- scripts/install | 7 ------- scripts/upgrade | 7 ------- 2 files changed, 14 deletions(-) diff --git a/scripts/install b/scripts/install index 0ef6a6a..67411a5 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 33c5514..320db17 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"