From a0e68c5fbfbd0a2c5eeb8c76fd44a5085e1f3fdc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 9 Jan 2021 21:19:47 +0100 Subject: [PATCH] Fix --- conf/groupname.json | 4 ++++ scripts/install | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 conf/groupname.json diff --git a/conf/groupname.json b/conf/groupname.json new file mode 100644 index 0000000..9751310 --- /dev/null +++ b/conf/groupname.json @@ -0,0 +1,4 @@ +{ + "op": [{"username": "__ADMIN__", "password": "__PASSWORD__"}], + "presenter": [{}] +} diff --git a/scripts/install b/scripts/install index d6f85d5..c820d91 100755 --- a/scripts/install +++ b/scripts/install @@ -133,12 +133,18 @@ 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 ../conf/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/groupname.json" + #================================================= # STORE THE CONFIG FILE CHECKSUM #================================================= # Calculate and store the config file checksum into the app settings ynh_store_file_checksum --file="$final_path/data/passwd" +ynh_store_file_checksum --file="$final_path/groups/groupname.json" #================================================= # GENERIC FINALIZATION