mirror of
https://github.com/YunoHost-Apps/searx_ynh.git
synced 2024-09-03 20:16:30 +02:00
Update upgrade
This commit is contained in:
parent
8e8f6da293
commit
79b562e108
1 changed files with 3 additions and 10 deletions
|
@ -125,18 +125,11 @@ pip3 install --requirement $final_path/requirements-ynh.txt --upgrade
|
|||
#=================================================
|
||||
# CONFIGURE SEARX
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reconfiguring Searx..." --weight=2
|
||||
ynh_script_progression --message="Configuring Searx..." --weight=2
|
||||
|
||||
# Change instance name
|
||||
ynh_replace_string --match_string="instance_name : \"searx\"" --replace_string="instance_name : \"YunoSearx\"" --target_file="$final_path/searx/settings.yml"
|
||||
secret_key=$(ynh_string_random)
|
||||
|
||||
# Generate a secret key
|
||||
ynh_replace_string --match_string="secret_key : \"ultrasecretkey\"" --replace_string="secret_key : \"$(ynh_string_random)\"" --target_file="$final_path/searx/settings.yml"
|
||||
|
||||
# Modify the base_url parameter
|
||||
#ynh_replace_string --match_string="base_url : False" --replace_string="base_url : https://${domain}${path_url%/}/" --target_file="$final_path/searx/settings.yml"
|
||||
|
||||
ynh_store_file_checksum --file="$final_path/searx/settings.yml"
|
||||
ynh_add_config --template="../conf/settings.yml" --destination="$final_path/searx/settings.yml"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
Loading…
Reference in a new issue