From 233b7619c80b7e284c68afabf10a76c124928797 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Mon, 11 Nov 2019 21:16:27 +0100 Subject: [PATCH] ynh_store_file_checksum after cp inside if block --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9529680..09777c7 100644 --- a/scripts/install +++ b/scripts/install @@ -297,8 +297,8 @@ ynh_store_file_checksum --file="/etc/matrix-$app/log.yaml" # Create .well-known redirection for access by federation if yunohost --output-as plain domain list | grep -q "^$server_name$" then - ynh_store_file_checksum --file="/etc/nginx/conf.d/__SERVER_NAME__.d/server_name.conf" cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf + ynh_store_file_checksum --file="/etc/nginx/conf.d/__SERVER_NAME__.d/server_name.conf" fi ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf"