mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-11 23:13:21 -05:00
Fixed Linux install script for some distros.
This commit is contained in:
parent
64af4b213a
commit
95d00c20a7
@ -123,7 +123,18 @@ DownloadAgent() {
|
|||||||
if [ $starttype -eq 1 ]
|
if [ $starttype -eq 1 ]
|
||||||
then
|
then
|
||||||
# systemd
|
# systemd
|
||||||
|
if [ -d "/lib/systemd/system/" ]
|
||||||
|
then
|
||||||
echo -e "[Unit]\nDescription=MeshCentral Agent\n[Service]\nExecStart=/usr/local/mesh/meshagent\nStandardOutput=null\nRestart=always\nRestartSec=3\n[Install]\nWantedBy=multi-user.target\nAlias=meshagent.service\n" > /lib/systemd/system/meshagent.service
|
echo -e "[Unit]\nDescription=MeshCentral Agent\n[Service]\nExecStart=/usr/local/mesh/meshagent\nStandardOutput=null\nRestart=always\nRestartSec=3\n[Install]\nWantedBy=multi-user.target\nAlias=meshagent.service\n" > /lib/systemd/system/meshagent.service
|
||||||
|
else
|
||||||
|
# Some distros have the systemd folder at a different place
|
||||||
|
if [ -d "/usr/lib/systemd/system/" ]
|
||||||
|
then
|
||||||
|
echo -e "[Unit]\nDescription=MeshCentral Agent\n[Service]\nExecStart=/usr/local/mesh/meshagent\nStandardOutput=null\nRestart=always\nRestartSec=3\n[Install]\nWantedBy=multi-user.target\nAlias=meshagent.service\n" > /usr/lib/systemd/system/meshagent.service
|
||||||
|
else
|
||||||
|
echo "Unable to find systemd folder."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
systemctl enable meshagent
|
systemctl enable meshagent
|
||||||
systemctl start meshagent
|
systemctl start meshagent
|
||||||
else
|
else
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.2.5-t",
|
"version": "0.2.5-u",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
Loading…
Reference in New Issue
Block a user