mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Fix
This commit is contained in:
parent
87d89af8e2
commit
a0e68c5fbf
2 changed files with 10 additions and 0 deletions
4
conf/groupname.json
Normal file
4
conf/groupname.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"op": [{"username": "__ADMIN__", "password": "__PASSWORD__"}],
|
||||||
|
"presenter": [{}]
|
||||||
|
}
|
|
@ -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="__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"
|
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
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Calculate and store the config file checksum into the app settings
|
# 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/data/passwd"
|
||||||
|
ynh_store_file_checksum --file="$final_path/groups/groupname.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue