Fixed Linux install script

This commit is contained in:
Ylian Saint-Hilaire 2019-03-01 17:23:48 -08:00
parent 26496dfc42
commit c4a32faccc
2 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.2.9-l",
"version": "0.2.9-m",
"keywords": [
"Remote Management",
"Intel AMT",