1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/umami_ynh.git synced 2024-10-01 13:34:50 +02:00

Merge pull request #31 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-09-21 18:08:03 +02:00 committed by GitHub
commit fc1981d3a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 5 deletions

View file

@ -31,7 +31,7 @@ Umami is a simple, easy to use, self-hosted web analytics solution. The goal is
- Privacy-focused
**Shipped version:** 2.6.2~ynh3
**Shipped version:** 2.6.2~ynh4
**Demo:** https://app.umami.is/share/8rmHaheU/umami.is

View file

@ -31,7 +31,7 @@ Umami is a simple, easy to use, self-hosted web analytics solution. The goal is
- Privacy-focused
**Version incluse :** 2.6.2~ynh3
**Version incluse :** 2.6.2~ynh4
**Démo :** https://app.umami.is/share/8rmHaheU/umami.is

View file

@ -5,7 +5,7 @@ name = "Umami"
description.en = "Simple, fast, privacy-focused alternative to Google Analytics"
description.fr = "Analyse de trafic web simple et respectueux"
version = "2.6.2~ynh3"
version = "2.6.2~ynh4"
maintainers = ["eric_G"]
@ -62,7 +62,7 @@ ram.runtime = "50M"
api.url = "/api"
api.show_tile = false
api.allowed = "visitors"
api.auth_header = false
api.auth_header = false
script.url = "/script.js"
script.show_tile = false
script.allowed = "visitors"

View file

@ -51,6 +51,10 @@ ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
chmod 650 "$install_dir/.env"
chown $app:$app "$install_dir/.env"
ynh_script_progression --message="Provisioning pgcrypto..." --weight=1
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pgcrypto;" --database="$db_name"
#=================================================
# CONFIGURE THE APP
#=================================================

View file

@ -35,6 +35,8 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
ynh_script_progression --message="Restoring the database..." --weight=6
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pgcrypto;" --database="$db_name"
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
#=================================================

View file

@ -83,6 +83,10 @@ ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
chmod 650 "$install_dir/.env"
chown $app:$app "$install_dir/.env"
ynh_script_progression --message="Provisioning pgcrypto..." --weight=1
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pgcrypto;" --database="$db_name"
#=================================================
# CONFIGURE THE APP
#=================================================
@ -92,7 +96,6 @@ pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NEXT_TELEMETRY_DISABLED=1 yarn build
#ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npx @umami/migrate-v1-v2@latest
popd
#=================================================