mirror of
https://github.com/YunoHost-Apps/searxng_ynh.git
synced 2024-09-03 20:26:00 +02:00
Fix upgrade form v1 > add use_default_settings: true
This commit is contained in:
parent
9e439f8e8e
commit
96136d7bcb
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
if [ -e "$install_dir/searx" ]; then
|
||||
sed -i '1s/^/use_default_settings: true\n\n/' "$install_dir/searx/settings.yml"
|
||||
mv "$install_dir/searx/settings.yml" "$data_dir/settings.yml"
|
||||
chmod 400 "$data_dir/settings.yml"
|
||||
chown $app: "$data_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue