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