From 4b2408f7c93d02dd02060139a4c4c072bc3763b1 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Wed, 4 Jul 2018 22:55:54 +0200 Subject: [PATCH] Fix installation --- scripts/install | 2 ++ scripts/restore | 2 ++ scripts/upgrade | 2 ++ 3 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index b9d0d28..52ac9ce 100644 --- a/scripts/install +++ b/scripts/install @@ -131,6 +131,8 @@ ynh_send_readme_to_admin "$message" chmod -R 770 "$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 diff --git a/scripts/restore b/scripts/restore index 414c8c6..995bc03 100644 --- a/scripts/restore +++ b/scripts/restore @@ -60,6 +60,8 @@ ynh_install_app_dependencies mumble-server mailutils # Restore permissions on app files chmod -R 770 "$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 diff --git a/scripts/upgrade b/scripts/upgrade index 016b4ad..ef873a2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -160,6 +160,8 @@ ynh_send_readme_to_admin "$message" chmod -R 770 "$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