From 261b3b84787c68180c6f406febae5b36769ecb95 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 13 Jan 2021 22:30:55 +0100 Subject: [PATCH] Update install --- scripts/install | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 00236b0..497e8c3 100755 --- a/scripts/install +++ b/scripts/install @@ -209,11 +209,12 @@ cp ../conf/passwd $final_path/data/passwd ynh_replace_string --match_string=__ADMIN__ --replace_string=$admin --target_file="$final_path/data/passwd" ynh_replace_string --match_string=__PASSWORD__ --replace_string=$password --target_file="$final_path/data/passwd" +cp -f $final_path/groups/groupname.json $final_path/groups/groupname.json + +ynh_replace_string --match_string=__ADMIN__ --replace_string=$admin --target_file="$final_path/groups/groupname.json" +ynh_replace_string --match_string=__PASSWORD__ --replace_string=$password --target_file="$final_path/groups/groupnamejson" + mv -f $final_path/groups/groupname.json $final_path/groups/$group_name.json - -ynh_replace_string --match_string=__ADMIN__ --replace_string=$admin --target_file="$final_path/groups/$group_name.json" -ynh_replace_string --match_string=__PASSWORD__ --replace_string=$password --target_file="$final_path/groups/$group_name.json" - cp ../conf/ice-servers.json $final_path/data/ice-servers.json ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="$final_path/data/ice-servers.json"