mirror of
https://github.com/YunoHost-Apps/matomo_ynh.git
synced 2024-09-03 19:45:56 +02:00
fix
This commit is contained in:
parent
8f77e45b20
commit
d449e6d6ee
9 changed files with 20 additions and 49 deletions
|
@ -1,5 +0,0 @@
|
||||||
## Configuration
|
|
||||||
|
|
||||||
1. The app will require to complete the registration process after the instllation is complete by **visiting the domain** on which Matomo is installed.
|
|
||||||
1. The MySQL database credentials will be sent to the **admin mail**. Fill these details while doing the registration process.
|
|
||||||
1. No LDAP support yet for the app.
|
|
|
@ -1,5 +0,0 @@
|
||||||
## Configuration
|
|
||||||
|
|
||||||
1. Une fois l'installation terminée, l'application devra terminer le processus d'enregistrement en **visitant le domaine** sur lequel Matomo est installé.
|
|
||||||
1. Les informations d'identification de la base de données MySQL seront envoyées à **l'email admin**. Remplissez ces détails lors du processus d'inscription.
|
|
||||||
1. Le support LDAP n'est pas encore implémenté pour cette l'application.
|
|
7
doc/POST_INSTALL_fr.md
Normal file
7
doc/POST_INSTALL_fr.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Une fois l'installation terminée, l'application devra terminer le processus d'enregistrement en visitant https://__DOMAIN____PATH__.
|
||||||
|
|
||||||
|
Details for MySQL database to be enterted while registration process:
|
||||||
|
|
||||||
|
Database login: __DB_USER
|
||||||
|
Database name: __DB_NAME__
|
||||||
|
Database password: __DB_PWD__
|
|
@ -17,11 +17,11 @@ admindoc = "https://matomo.org/docs"
|
||||||
code = "https://github.com/matomo-org/matomo"
|
code = "https://github.com/matomo-org/matomo"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.10"
|
yunohost = ">= 11.1.15"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = "?"
|
ldap = false
|
||||||
sso = "?"
|
sso = false
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "50M"
|
ram.build = "50M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
@ -44,6 +44,13 @@ ram.runtime = "50M"
|
||||||
type = "user"
|
type = "user"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
||||||
|
[resources.sources]
|
||||||
|
|
||||||
|
[resources.sources.main]
|
||||||
|
url = "https://builds.matomo.org/matomo-4.12.3.tar.gz"
|
||||||
|
sha256 = "00efe4335c9cee9f269b5e8a337026af7f115c05cde1e9ae47485592372b37ee"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
YNH_PHP_VERSION=8.0
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -53,33 +53,6 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||||
chown root: "/etc/cron.d/$app"
|
chown root: "/etc/cron.d/$app"
|
||||||
chmod 644 "/etc/cron.d/$app"
|
chmod 644 "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RELOAD NGINX
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SEND A README FOR THE ADMIN
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Sending a readme for the admin..." --weight=1
|
|
||||||
|
|
||||||
message="Matomo was successfully installed
|
|
||||||
|
|
||||||
Please open your $app domain: https://$domain$path
|
|
||||||
|
|
||||||
Complete the registration process from the setup page displayed.
|
|
||||||
Details for MySQL database to be enterted while registration process:
|
|
||||||
|
|
||||||
Database login: $db_user
|
|
||||||
Database name: $db_name
|
|
||||||
Database password: $db_pwd
|
|
||||||
|
|
||||||
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/matomo_ynh/issues"
|
|
||||||
|
|
||||||
ynh_send_readme_to_admin "$message"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -28,9 +28,6 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig
|
||||||
# Restore the file first, so it can have a backup if different
|
# Restore the file first, so it can have a backup if different
|
||||||
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
# Recreate a dedicated PHP-FPM config
|
|
||||||
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
# RESTORE THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# LOAD SETTINGS
|
# LOAD SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Loading installation settings..." --weight=1
|
|
||||||
|
|
||||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
|
|
||||||
|
@ -28,18 +27,18 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
# If admin doesn't exist
|
# If admin doesn't exist
|
||||||
if [ -z "$admin" ]; then
|
if [ -z "${admin:-}" ]; then
|
||||||
email=root@$domain
|
email=root@$domain
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If fpm_footprint doesn't exist, create it
|
# If fpm_footprint doesn't exist, create it
|
||||||
if [ -z "$fpm_footprint" ]; then
|
if [ -z "${fpm_footprint:-}" ]; then
|
||||||
fpm_footprint=low
|
fpm_footprint=low
|
||||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If fpm_usage doesn't exist, create it
|
# If fpm_usage doesn't exist, create it
|
||||||
if [ -z "$fpm_usage" ]; then
|
if [ -z "${fpm_usage:-}" ]; then
|
||||||
fpm_usage=low
|
fpm_usage=low
|
||||||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||||
fi
|
fi
|
||||||
|
|
0
tests.toml
Normal file
0
tests.toml
Normal file
Loading…
Add table
Reference in a new issue