1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

Merge pull request #48 from yalh76/fix_upgrade

Fix upgrade
This commit is contained in:
Alexandre Aubin 2019-08-10 22:06:26 +02:00 committed by GitHub
commit 39a376af02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,10 +125,10 @@ if ynh_version_gt "2.48~ynh1" "${previous_version}" ; then
config_file="$final_path/.env" config_file="$final_path/.env"
ynh_backup_if_checksum_is_different --file="$config_file" ynh_backup_if_checksum_is_different --file="$config_file"
cp "../conf/.env" "$config_file" cp "../conf/.env" "$config_file"
ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file"$config_file" ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file="$config_file"
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file"$config_file" ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$config_file"
ynh_replace_string --match_string="__DOMAIN_URI__" --replace_string="$domain$path_url" --target_file"$config_file" ynh_replace_string --match_string="__DOMAIN_URI__" --replace_string="$domain$path_url" --target_file="$config_file"
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file"$config_file" ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_file"
ynh_store_file_checksum "$config_file" ynh_store_file_checksum "$config_file"
fi fi