diff --git a/scripts/install b/scripts/install index b1e9368..35bc3a1 100644 --- a/scripts/install +++ b/scripts/install @@ -134,14 +134,14 @@ systemctl disable mumble-server --quiet ynh_script_progression --message="Integrating service in YunoHost..." # Add Mumble as a YunoHost service -yunohost service add $app --description="Mumble server" --log="/var/log/$app/$app.log" --needs_exposed_ports $port +yunohost service add $app --description="Mumble server" --log="/var/log/mumble-server/$app.log" --needs_exposed_ports="$port" #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=3 -ynh_systemd_action --service_name=$app --action=restart #--log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/mumble-server/$app.log" #================================================= # SEND README TO ADMIN diff --git a/scripts/restore b/scripts/restore index 6aeb760..957e2c8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -79,7 +79,7 @@ systemctl disable mumble-server --quiet ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 # Add Mumble as a YunoHost service -yunohost service add $app --description="Mumble server" --log="/var/log/$app/$app.log" --needs_exposed_ports $port +yunohost service add $app --description="Mumble server" --log="/var/log/mumble-server/$app.log" --needs_exposed_ports="$port" #================================================= # RESTORE SYSTEMD @@ -94,7 +94,7 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=3 -ynh_systemd_action --service_name=$app --action=restart #--log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/mumble-server/$app.log" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 8006646..c1c607c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -178,14 +178,14 @@ systemctl disable mumble-server --quiet #================================================= # Add Mumble as a YunoHost service -yunohost service add $app --description="Mumble server" --log="/var/log/$app/$app.log" --needs_exposed_ports $port +yunohost service add $app --description="Mumble server" --log="/var/log/mumble-server/$app.log" --needs_exposed_ports="$port" #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=3 -ynh_systemd_action --service_name=$app --action=restart #--log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/mumble-server/$app.log" #================================================= # SEND README TO ADMIN