1
0
Fork 0
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:
tituspijean 2024-07-18 22:57:15 +02:00
parent 606671cb42
commit 9cc2b6c717
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -58,6 +58,13 @@ ynh_script_progression --message="Installing Python dependencies..."
ynh_secure_remove --file="$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
#=================================================