From 2df920024a326278385ad8272c0e1c455c8aca8b Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 6 Sep 2024 14:28:14 +0300 Subject: [PATCH] start --- migration.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/migration.sh b/migration.sh index 67058ba..085e814 100644 --- a/migration.sh +++ b/migration.sh @@ -99,10 +99,17 @@ fonts_rsync else echo "EVENT_COMMON value must be 0 or 1 or 2" && exit fi -if service --status-all 2>&1 | grep -q "platform5.service"; then - systemctl start platform5 -fi -if service --status-all 2>&1 | grep -q "platform6.service"; then - systemctl start platform6 +if systemctl cat platform5 >/dev/null 2>&1; then + service platform5 start +fi +if systemctl cat platform6 >/dev/null 2>&1; then + service platform6 start fi + + + + + + +