mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
Fix
This commit is contained in:
parent
a1d15eb2f3
commit
ad9982d644
2 changed files with 6 additions and 6 deletions
|
@ -143,11 +143,11 @@ fi
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config --service=mumble-server --template=systemd.service
|
||||||
|
|
||||||
if [ "$mumbleweb" -eq 1 ] ; then
|
if [ "$mumbleweb" -eq 1 ] ; then
|
||||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/mumble-web.service"
|
||||||
ynh_add_systemd_config "$app-web" mumble-web.service
|
ynh_add_systemd_config --service=mumble-web --template=mumble-web.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -178,11 +178,11 @@ ynh_add_config --template="../conf/mumble-server.ini" --destination="$final_path
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config --service=mumble-server --template=systemd.service
|
||||||
|
|
||||||
if [ "$mumbleweb" -eq 1 ] ; then
|
if [ "$mumbleweb" -eq 1 ] ; then
|
||||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/mumble-web.service"
|
||||||
ynh_add_systemd_config "$app-web" mumble-web.service
|
ynh_add_systemd_config --service=mumble-web --template=mumble-web.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue