1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/matomo_ynh.git synced 2024-09-03 19:45:56 +02:00
This commit is contained in:
ericgaspar 2020-12-11 11:56:48 +01:00
parent 2931b0bf59
commit 04df2b22dc
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 3 additions and 8 deletions

View file

@ -113,11 +113,6 @@ ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion
cp -f ../conf/cron /etc/cron.d/$app
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="../conf/config.ini.php"
ynh_replace_string --match_string="__DB_PASSWORD__" --replace_string="$db_pwd" --target_file="../conf/config.ini.php"
cp -f ../conf/config.ini.php $final_path/config/config.ini.php
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -83,16 +83,16 @@ then
# Create a temporary directory
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/config/config.ini.php" "$tmpdir/config.ini.php"
cp -a "$final_path/config" "$tmpdir"
# Remove the app directory securely
ynh_secure_remove --file=$final_path
ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
#Copy the admin saved settings from tmp directory to final path
cp -a "$tmpdir/config.ini.php" "$final_path/config/config.ini.php"
cp -a "$tmpdir" "$final_path/config"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"