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:
parent
e65bb10a62
commit
93dc952214
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue