mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Fixed Linux install script
This commit is contained in:
parent
26496dfc42
commit
c4a32faccc
@ -3,11 +3,14 @@
|
|||||||
CheckStartupType() {
|
CheckStartupType() {
|
||||||
# echo "Checking process autostart system..."
|
# echo "Checking process autostart system..."
|
||||||
starttype=`ps -p 1 | awk '/1/ {print $4}'`
|
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' ]];
|
elif [[ $starttype == 'init' ]];
|
||||||
then
|
then
|
||||||
if [[ `/sbin/init --version` =~ upstart ]]; then return 2; # upstart
|
# 2 is Upstart
|
||||||
return 3; # sysv-init
|
if [[ `/sbin/init --version` =~ upstart ]]; then return 2;
|
||||||
|
# 3 is Sysv-init
|
||||||
|
return 3;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.2.9-l",
|
"version": "0.2.9-m",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
Loading…
Reference in New Issue
Block a user