1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osticket_ynh.git synced 2024-09-03 19:56:17 +02:00

fix $config_file

This commit is contained in:
yalh76 2020-02-28 21:23:43 +01:00
parent e65bb10a62
commit 93dc952214

View file

@ -24,6 +24,8 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
language=$(ynh_app_setting_get --app=$app --key=language) language=$(ynh_app_setting_get --app=$app --key=language)
db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_name=$(ynh_app_setting_get --app=$app --key=db_name)
config_file=$final_path/include/ost-config.php
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
#================================================= #=================================================
@ -85,7 +87,7 @@ then
mkdir $tmpdir/plugins mkdir $tmpdir/plugins
rsync -a "$final_path/include/plugins" "$tmpdir/." rsync -a "$final_path/include/plugins" "$tmpdir/."
rsync -a "$final_path/include/ost-config.php" "$tmpdir/." rsync -a "$config_file" "$tmpdir/."
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
@ -207,9 +209,9 @@ ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path"
#================================================= #=================================================
ynh_print_info --message="Storing the config file checksum..." ynh_print_info --message="Storing the config file checksum..."
ynh_backup_if_checksum_is_different --file="$final_path/include/ost-config.php" ynh_backup_if_checksum_is_different --file="$config_file"
# Recalculate and store the checksum of the file for the next upgrade. # Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/include/ost-config.php" ynh_store_file_checksum --file="$config_file"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION