Skip to content
Snippets Groups Projects
Commit da364a4d authored by Bob Mottram's avatar Bob Mottram
Browse files

Alter systemd daemon if necessary for the current python version

parent fd3cd8f1
No related branches found
No related tags found
No related merge requests found
......@@ -476,6 +476,18 @@ function upgrade_matrix {
CURR_MATRIX_COMMIT=$(get_completion_param "matrix commit")
if [[ "$CURR_MATRIX_COMMIT" == "$MATRIX_COMMIT" ]]; then
# alter systemd daemon if necessary for the current python version
if [ ! -f /etc/matrix/run-matrix ]; then
matrix_systemd_daemon
systemctl restart matrix
else
if ! grep -q "$MATRIX_PYTHON " /etc/matrix/run-matrix; then
matrix_systemd_daemon
systemctl restart matrix
fi
fi
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment