Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
b88ac33f80
|
@ -164,12 +164,12 @@ DownloadAgent() {
|
||||||
# systemd
|
# systemd
|
||||||
if [ -d "/lib/systemd/system/" ]
|
if [ -d "/lib/systemd/system/" ]
|
||||||
then
|
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]\nWorkingDirectory=/usr/local/mesh\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
|
else
|
||||||
# Some distros have the systemd folder at a different place
|
# Some distros have the systemd folder at a different place
|
||||||
if [ -d "/usr/lib/systemd/system/" ]
|
if [ -d "/usr/lib/systemd/system/" ]
|
||||||
then
|
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
|
echo -e "[Unit]\nDescription=MeshCentral Agent\n[Service]\nWorkingDirectory=/usr/local/mesh\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
|
else
|
||||||
echo "Unable to find systemd folder."
|
echo "Unable to find systemd folder."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue