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 + + + + + + +