1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mumbleserver_ynh.git synced 2024-09-03 19:46:03 +02:00
This commit is contained in:
ericgaspar 2021-06-05 09:50:40 +02:00
parent 73b7537d18
commit 933119bd4f
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 16 additions and 18 deletions

View file

@ -194,6 +194,8 @@ 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
# Add Mumble as a YunoHost service
yunohost service add mumble-web --description="Mumble web" --log="/var/log/$app/$app.log" --needs_exposed_ports=$port_web
#=================================================
# START SYSTEMD SERVICE
@ -202,6 +204,8 @@ 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=mumble-web --action=restart --log_path="/var/log/$app/mumble-web.log"
#=================================================
# SETUP SSOWAT
#=================================================

View file

@ -80,15 +80,17 @@ chmod -R 770 "$final_path"
chown -R :mumble-server "$final_path"
#=================================================
# Add user to ssl-cert so it can read certificates
# ADD USER TO SSL-CERT
#=================================================
# Add user to ssl-cert so it can read certificates
usermod --append --groups ssl-cert mumble-server
#=================================================
# Disable default server installed by Debian's package
# DISABLE DEFAULT SERVER
#=================================================
# Disable default server installed by Debian's package
systemctl stop mumble-server
systemctl disable mumble-server --quiet
@ -99,6 +101,8 @@ 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
# Add Mumble as a YunoHost service
yunohost service add mumble-web --description="Mumble web" --log="/var/log/$app/mumble-web.log" --needs_exposed_ports=$port_web
#=================================================
# RESTORE SYSTEMD
@ -116,8 +120,8 @@ systemctl enable "mumble-web.service" --quiet
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="start"
ynh_systemd_action --service_name="mumble-web" --action="start"
ynh_systemd_action --service_name="$app" --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name="mumble-web" --action="start" --log_path="/var/log/$app/mumble-web.log"
#=================================================
# GENERIC FINALIZATION
@ -128,13 +132,6 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# 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"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -221,19 +221,16 @@ 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
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=3
# Add Mumble as a YunoHost service
yunohost service add mumble-web --description="Mumble web" --log="/var/log/$app/mumble-web.log" --needs_exposed_ports=$port_web
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="start"
ynh_systemd_action --service_name="mumble-web" --action="start"
ynh_systemd_action --service_name="$app" --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name="mumble-web" --action="start" --log_path="/var/log/$app/mumble-web.log"
#=================================================
# RELOAD NGINX