From 68340e1e574f0021e5b96bcdca9a3766e8ea29c3 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 1 Mar 2019 17:23:48 -0800 Subject: [PATCH] Fixed Linux install script --- agents/meshinstall-linux.sh | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/agents/meshinstall-linux.sh b/agents/meshinstall-linux.sh index e19eb14b..d024e18d 100644 --- a/agents/meshinstall-linux.sh +++ b/agents/meshinstall-linux.sh @@ -3,11 +3,14 @@ CheckStartupType() { # echo "Checking process autostart system..." starttype=`ps -p 1 | awk '/1/ {print $4}'` - if [[ $starttype == 'systemd' ]]; then return 1; # systemd; + # 1 is Systemd; + if [[ $starttype == 'systemd' ]]; then return 1; elif [[ $starttype == 'init' ]]; then - if [[ `/sbin/init --version` =~ upstart ]]; then return 2; # upstart - return 3; # sysv-init + # 2 is Upstart + if [[ `/sbin/init --version` =~ upstart ]]; then return 2; + # 3 is Sysv-init + return 3; fi fi return 0; diff --git a/package.json b/package.json index 49d4a2d9..a968d075 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.2.9-l", + "version": "0.2.9-m", "keywords": [ "Remote Management", "Intel AMT",