More fixed to Linux install script
Ylian Saint-Hilaire committed
Mar 1, 2019 at 17:25 UTC
7689438b7a8c3a430ae2892df1b961945dad59da
1 file changed
+4
-3
agents/meshinstall-linux.sh
+4
-3
@@ -142,7 +142,8 @@ DownloadAgent() {
142
# initd
143
wget $url/meshagents?script=2 --no-check-certificate -O /etc/init.d/meshagent
144
chmod +x /etc/init.d/meshagent
145
- update-rc.d meshagent defaults # creates symlinks for rc.d
145
+ # creates symlinks for rc.d
146
+ update-rc.d meshagent defaults
147
service meshagent start
148
echo 'meshagent installed as init.d service.'
149
echo 'To start service: sudo service meshagent start'
@@ -157,8 +158,8 @@ DownloadAgent() {
158
echo 'To stop service: sudo service meshagent stop'
159
else
160
# unknown
160
- echo "Unknown Service Platform Type. (ie: init, systemd, etc)"
161
- echo "Unable to install meshagent as service."
161
+ echo "Unknown Service Platform Type. (ie: init, systemd, etc)"
162
+ echo "Unable to install meshagent as service."
163
fi
164
echo "Mesh agent started."
165
else