mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 07:23:03 +03:00
More fixed to Linux install script
This commit is contained in:
parent
c4a32faccc
commit
67eb89143d
@ -142,7 +142,8 @@ DownloadAgent() {
|
|||||||
# initd
|
# initd
|
||||||
wget $url/meshagents?script=2 --no-check-certificate -O /etc/init.d/meshagent
|
wget $url/meshagents?script=2 --no-check-certificate -O /etc/init.d/meshagent
|
||||||
chmod +x /etc/init.d/meshagent
|
chmod +x /etc/init.d/meshagent
|
||||||
update-rc.d meshagent defaults # creates symlinks for rc.d
|
# creates symlinks for rc.d
|
||||||
|
update-rc.d meshagent defaults
|
||||||
service meshagent start
|
service meshagent start
|
||||||
echo 'meshagent installed as init.d service.'
|
echo 'meshagent installed as init.d service.'
|
||||||
echo 'To start service: sudo service meshagent start'
|
echo 'To start service: sudo service meshagent start'
|
||||||
@ -157,8 +158,8 @@ DownloadAgent() {
|
|||||||
echo 'To stop service: sudo service meshagent stop'
|
echo 'To stop service: sudo service meshagent stop'
|
||||||
else
|
else
|
||||||
# unknown
|
# unknown
|
||||||
echo "Unknown Service Platform Type. (ie: init, systemd, etc)"
|
echo "Unknown Service Platform Type. (ie: init, systemd, etc)"
|
||||||
echo "Unable to install meshagent as service."
|
echo "Unable to install meshagent as service."
|
||||||
fi
|
fi
|
||||||
echo "Mesh agent started."
|
echo "Mesh agent started."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user