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 #33 from YunoHost-Apps/testing

Upgrade to 0.1.0-2019-10-10~ynh1
This commit is contained in:
yalh76 2019-10-11 20:27:16 +02:00 committed by GitHub
commit cb5393f8a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 27 deletions

View file

@ -13,7 +13,7 @@ MobiliZon aims to solve existing platform's problems to organize events in a dec
Mobilizon is a tool designed to create platforms for managing communities and events. Its purpose is to help as many people as possible to free themselves from Facebook groups and events, from Meetup, etc. Mobilizon is a tool designed to create platforms for managing communities and events. Its purpose is to help as many people as possible to free themselves from Facebook groups and events, from Meetup, etc.
**Shipped version:** 0.1.0-2019-07-28 **Shipped version:** 0.1.0-2019-10-10
## Important points to read before installing ## Important points to read before installing

View file

@ -19,4 +19,4 @@ MOBILIZON_DATABASE_USERNAME="__DB_USER__"
MOBILIZON_DATABASE_PASSWORD="__DB_PWD__" MOBILIZON_DATABASE_PASSWORD="__DB_PWD__"
MOBILIZON_DATABASE_DBNAME="__DB_NAME__" MOBILIZON_DATABASE_DBNAME="__DB_NAME__"
MOBILIZON_DATABASE_HOST="localhost" MOBILIZON_DATABASE_HOST="localhost"
MOBILIZON_DATABASE_PORT="5432" MOBILIZON_DATABASE_PORT=5432

View file

@ -1,6 +1,6 @@
SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/6d80bf43ea75d93cb7987792fa46974f77d330e8/mobilizon-6d80bf43ea75d93cb7987792fa46974f77d330e8.tar.gz SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/b57c75743e7a8903388d6adb1e9e88b16453f74f/mobilizon-b57c75743e7a8903388d6adb1e9e88b16453f74f.tar.gz
SOURCE_SUM=a8441bd946a8cf5262585119ad9a77c0737f9ae4ed6c7497be8229179ad592b9 SOURCE_SUM=0d0d9e51366b8705cf1df105363579e76caf54d7dfb6b3ce05b91559e46cb2b6
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_FILENAME= SOURCE_FILENAME=0.1.0-2019-10-10.tar.gz

View file

@ -1,24 +1,11 @@
use Mix.Config import Config
# For production, we often load configuration from external
# sources, such as your system environment. For this reason,
# you won't find the :http configuration below, but set inside
# MobilizonWeb.Endpoint.init/2 when load_from_system_env is
# true. Any dynamic configuration should be done there.
#
# Don't forget to configure the url host to something meaningful,
# Phoenix uses this information when generating URLs.
#
# Finally, we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the mix phx.digest task
# which you typically run after static files are built.
config :mobilizon, MobilizonWeb.Endpoint, config :mobilizon, MobilizonWeb.Endpoint,
load_from_system_env: true, load_from_system_env: true,
url: [ url: [
host: "__DOMAIN__", host: "__DOMAIN__",
scheme: "https", port: 443,
port: 443 scheme: "https"
], ],
http: [ http: [
ip: {127, 0, 0, 1}, ip: {127, 0, 0, 1},
@ -26,11 +13,11 @@ config :mobilizon, MobilizonWeb.Endpoint,
], ],
secret_key_base: secret_key_base:
"__SECRET__", "__SECRET__",
cache_static_manifest: "priv/static/js/manifest.json" cache_static_manifest: "priv/static/manifest.json"
# Configure your database # Configure your database
config :mobilizon, Mobilizon.Repo, config :mobilizon, Mobilizon.Storage.Repo,
types: Mobilizon.PostgresTypes, types: Mobilizon.Storage.PostgresTypes,
username: "__DB_USER__", username: "__DB_USER__",
password: "__DB_PWD__", password: "__DB_PWD__",
database: "__DB_NAME__", database: "__DB_NAME__",
@ -38,7 +25,7 @@ config :mobilizon, Mobilizon.Repo,
port: "5432", port: "5432",
pool_size: 15 pool_size: 15
config :mobilizon, Mobilizon.Mailer, config :mobilizon, MobilizonWeb.Email.Mailer,
adapter: Bamboo.SMTPAdapter, adapter: Bamboo.SMTPAdapter,
server: "localhost", server: "localhost",
hostname: "localhost", hostname: "localhost",

View file

@ -6,7 +6,7 @@
"en": "Your federated organization and mobilization platform.", "en": "Your federated organization and mobilization platform.",
"fr": "Votre plateforme fédérée d'organisation et de mobilisation." "fr": "Votre plateforme fédérée d'organisation et de mobilisation."
}, },
"version": "0.1.0-2019-07-28~ynh1", "version": "0.1.0-2019-10-10~ynh1",
"url": "https://joinmobilizon.org/", "url": "https://joinmobilizon.org/",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"maintainer": { "maintainer": {

View file

@ -107,6 +107,7 @@ ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS postgis;" --database=$db_name ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS postgis;" --database=$db_name
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS unaccent;" --database=$db_name ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS unaccent;" --database=$db_name
ynh_psql_execute_as_root --sql="ALTER USER $db_user PASSWORD '$db_pwd';" --database=$db_name
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE

View file

@ -71,7 +71,6 @@ ynh_print_info --message="Backing up the app before upgrading (may take a while)
# Backup the current version of the app # Backup the current version of the app
ynh_backup_before_upgrade ynh_backup_before_upgrade
ynh_clean_setup () { ynh_clean_setup () {
read -p "key"
# restore it if the upgrade fails # restore it if the upgrade fails
ynh_restore_upgradebackup ynh_restore_upgradebackup
ynh_clean_check_starting ynh_clean_check_starting