From a68c95ba7301350c8e9ac816ef9fd33563b8a112 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 23 Sep 2020 16:07:46 -0400 Subject: [PATCH] fix logic on systemd and mysql/mariadb existence --- distros/ubuntu2004/zoneminder.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distros/ubuntu2004/zoneminder.postinst b/distros/ubuntu2004/zoneminder.postinst index 715e6a839..6c7bcccba 100644 --- a/distros/ubuntu2004/zoneminder.postinst +++ b/distros/ubuntu2004/zoneminder.postinst @@ -67,7 +67,7 @@ if [ "$1" = "configure" ]; then if [ "$ZM_DB_HOST" = "localhost" ]; then - if [ $SYSTEMD -eq 1 ] && [ -e "/lib/systemd/system/mysql.service" ] || [ -e "/lib/systemd/system/mariadb.service" ]; then + if [ $SYSTEMD -eq 1 ] && ([ -e "/lib/systemd/system/mysql.service" ] || [ -e "/lib/systemd/system/mariadb.service" ]); then # # Get mysql started if it isn't running #