mirror of
https://github.com/YunoHost-Apps/headphones_ynh.git
synced 2024-09-03 19:26:02 +02:00
Set http_root also during upgrade
Co-authored-by: Félix Piédallu <felix.piedallu@non.se.com>
This commit is contained in:
parent
606671cb42
commit
9cc2b6c717
1 changed files with 7 additions and 0 deletions
|
@ -58,6 +58,13 @@ ynh_script_progression --message="Installing Python dependencies..."
|
||||||
ynh_secure_remove --file="$install_dir/venv"
|
ynh_secure_remove --file="$install_dir/venv"
|
||||||
python3 -m venv $install_dir/venv
|
python3 -m venv $install_dir/venv
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# UPDATE A CONFIG FILE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Updating a configuration file..."
|
||||||
|
|
||||||
|
ynh_replace_string --match_string="^http_root = .*" --replace_string="http_root = $new_path" --target_file="/etc/$app/headphones.ini"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue