mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
fix missing directory after reboot
This commit is contained in:
parent
f9abf64a16
commit
b5f068a7e9
5 changed files with 4 additions and 11 deletions
|
@ -7,6 +7,8 @@ After=network.target
|
||||||
User=mumble-server
|
User=mumble-server
|
||||||
Group=mumble-server
|
Group=mumble-server
|
||||||
Type=forking
|
Type=forking
|
||||||
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
|
||||||
|
RuntimeDirectory=mumble-server
|
||||||
ExecStart=/usr/sbin/murmurd -ini __FINALPATH__/mumble-server.ini
|
ExecStart=/usr/sbin/murmurd -ini __FINALPATH__/mumble-server.ini
|
||||||
PIDFile=/var/run/mumble-server/__APP__.pid
|
PIDFile=/var/run/mumble-server/__APP__.pid
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
"url": "https://mumble.info",
|
"url": "https://mumble.info",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "jibec",
|
"name": "Jean-Baptiste Holcroft",
|
||||||
"email": "jean-baptiste@holcroft.fr"
|
"email": "jean-baptiste@holcroft.fr"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.1.0"
|
"yunohost": ">= 3.1.0"
|
||||||
},
|
},
|
||||||
"version": "1.2.8~ynh5",
|
"version": "1.2.8~ynh6",
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
],
|
],
|
||||||
|
|
|
@ -111,10 +111,6 @@ ynh_add_systemd_config
|
||||||
chmod -R 770 "$final_path"
|
chmod -R 770 "$final_path"
|
||||||
chown -R :mumble-server "$final_path"
|
chown -R :mumble-server "$final_path"
|
||||||
|
|
||||||
# Prevent "PID file /var/run/mumble-server/*.pid not readable (yet?) after start."
|
|
||||||
mkdir -p /var/run/mumble-server/
|
|
||||||
chown mumble-server /var/run/mumble-server/
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Add user to ssl-cert so it can read certificates
|
# Add user to ssl-cert so it can read certificates
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -60,8 +60,6 @@ ynh_install_app_dependencies mumble-server mailutils
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chmod -R 770 "$final_path"
|
chmod -R 770 "$final_path"
|
||||||
chown -R :mumble-server "$final_path"
|
chown -R :mumble-server "$final_path"
|
||||||
# Prevent "PID file /var/run/mumble-server/*.pid not readable (yet?) after start."
|
|
||||||
chown mumble-server /var/run/mumble-server/
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Add user to ssl-cert so it can read certificates
|
# Add user to ssl-cert so it can read certificates
|
||||||
|
|
|
@ -158,9 +158,6 @@ ynh_add_systemd_config
|
||||||
|
|
||||||
chmod -R 770 "$final_path"
|
chmod -R 770 "$final_path"
|
||||||
chown -R :mumble-server "$final_path"
|
chown -R :mumble-server "$final_path"
|
||||||
# Prevent "PID file /var/run/mumble-server/*.pid not readable (yet?) after start."
|
|
||||||
mkdir -p /var/run/mumble-server/
|
|
||||||
chown mumble-server /var/run/mumble-server/
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Add user to ssl-cert so it can read certificates
|
# Add user to ssl-cert so it can read certificates
|
||||||
|
|
Loading…
Add table
Reference in a new issue