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
c8e9931ad4
commit
f9c793bac4
2 changed files with 21 additions and 1 deletions
|
@ -7,3 +7,9 @@ password = "__DB_PWD__"
|
|||
dbname = "__DB_NAME__"
|
||||
tables_prefix = "matomo_"
|
||||
charset = "utf8mb4"
|
||||
|
||||
[General]
|
||||
force_ssl = 1
|
||||
salt = "__SALT__"
|
||||
trusted_hosts[] = "__DOMAIN__"
|
||||
trusted_hosts[] = "WWW.__DOMAIN__"
|
||||
|
|
|
@ -55,6 +55,13 @@ db_user=$db_name
|
|||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
|
||||
|
||||
#=================================================
|
||||
# SETUP MYSQL
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setuping MySQL..."
|
||||
|
||||
ynh_replace_string --match_string="max_allowed_packet = 16M" --replace_string="max_allowed_packet = 64M" --target_file="/etc/mysql/my.cnf"
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
@ -96,7 +103,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing Composer and dependencies..."
|
||||
|
||||
ynh_install_composer --phpversion="$phpversion" --workdir="$final_path"
|
||||
ynh_install_composer #--phpversion="$phpversion" --workdir="$final_path"
|
||||
|
||||
# Install missing icons
|
||||
ynh_setup_source --dest_dir="$final_path/plugins/Morpheus/icons" --source_id="icons"
|
||||
|
@ -109,6 +116,13 @@ ynh_script_progression --message="Setuping a cron..."
|
|||
|
||||
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||
|
||||
#=================================================
|
||||
# SETUP A CRON
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setuping a configuration file..."
|
||||
|
||||
ynh_add_config --template="../conf/config.ini.php" --destination="$final_path/config/config.ini.php"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue